• 🏆 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!

How to spawn random items in random points in region

Status
Not open for further replies.
Level 4
Joined
Jun 2, 2012
Messages
746
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,597
  • 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
746
  • 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