• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[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,868
  • 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: 48
Status
Not open for further replies.
Top