• 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.

How to spawn random items in random points in region

Status
Not open for further replies.
Level 4
Joined
Jun 2, 2012
Messages
747
Hello hivers. I am here to ask a question. How do I spawn random items in random points in region. Like randomly, it will spawn a health orb on random points in region 1. This triggers are mostly used in boss fights.... healing orbs spawning....How do I do that? I guesss ive made my point here...
 
Level 17
Joined
Mar 21, 2011
Messages
1,611
  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Item[1] = Claws of Attack
      • Set Item[2] = Orb of Fire
      • Set Item[3] = Ring of Protection
  • Spawn
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set Integer = (Random integer number between 1 and 3)
      • Set Point = (Random point in (Playable map area))
      • Item - Create Item[Integer] at Point
      • Custom script: call RemoveLocation (udg_Point)
 
Level 4
Joined
Jun 2, 2012
Messages
747
  • Initialization
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Item[1] = Claws of Attack
      • Set Item[2] = Orb of Fire
      • Set Item[3] = Ring of Protection
  • Spawn
    • Events
      • Time - Every 10.00 seconds of game time
    • Conditions
    • Actions
      • Set Integer = (Random integer number between 1 and 3)
      • Set Point = (Random point in (Playable map area))
      • Item - Create Item[Integer] at Point
      • Custom script: call RemoveLocation (udg_Point)

Exactly! That's what Im lookin for... well that what I did but I have many mistakes..... yours is correct! THANKS! +REP!!
 
Status
Not open for further replies.
Top