• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[Solved] Creating Runes/Tomes/Items on the Ground

Status
Not open for further replies.
Level 13
Joined
Mar 24, 2013
Messages
1,105
Hello, I'm trying to make a periodic event that every so often a rune/tome/item is randomly created on the ground in a region. I can't seem to figure out how though.. Any help would be extremely helpful.

Thanks!
 
Level 20
Joined
Jun 27, 2011
Messages
1,864
  • Set
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Item[1] = Tome of Power
      • Set Item[2] = Tome of Greater Experience
      • Set Item[3] = Manual of Health
      • Set Item[4] = Rune of Dispel Magic
      • Set Item[5] = Rune of Greater Healing
      • Set Item[6] = Rune of Healing
      • Set Item[7] = Claws of Attack +15
      • Set Item[8] = Crown of Kings +5
      • Set Item[9] = Kelen's Dagger of Escape
      • Set Item[10] = Mask of Death
  • [/stable]
  • Create
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set Temp_Point = (Center of (Playable map area))
      • Item - Create Item[(Random integer number between 1 and 10)] at Temp_Point
      • Custom script: call RemoveLocation( udg_Temp_Point )
  • [/stable]
Test map if you're confused.
 

Attachments

  • RandomItems.w3x
    16.6 KB · Views: 45
Status
Not open for further replies.
Top