• 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.
  • Create a faction for Warcraft 3 and enter Hive's 19th Techtree Contest: Co-Op Commanders! Click here to enter!
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 21st Texturing Contest: Upgrade is now concluded, time to vote for your favourite set of icons! Click here to vote!

Random place in very Regions (pls help)

Status
Not open for further replies.
Create a region over the entire map and name it "World" or wat ever you want to.
Then Create this trigger:

  • CoP Spawn
    • Events
      • Time - Every 2.00 seconds of game time
    • Conditions
    • Actions
      • Set Spawn = (Random point in World <gen>)
      • Unit - Create 1 Circle of Power for Player 1 (Red) at Spawn facing Default building facing (270.0) degrees
      • Custom script: call RemoveLocation( udg_Spawn )
Note: The event can differ. Can be anything u want it to be.
 
Level 4
Joined
Aug 19, 2009
Messages
66
No thanks but it's notb that...
Imagine that i have a area that haves 5 regions , thats regions are the places that circle of power ill spawn, but can only spawn in one permanently for the rest of the game.
My game is a Game full of mini-games and this is a maze and the maze finishes at circle of power , so peaple that already played won't know where it is the finish.

Please help and sorry for miss understood...
 
Level 2
Joined
Sep 3, 2009
Messages
15
~Go Trigger Editor

1) Make a trigger
2) Event - Map Initialization
Condition -
Action - Unit - Create 1 [Circle Of Power] For [Your Player] At Random Point In
Playable Map Area facing Default Building Facing
 
I Think I understand.... You mean this?

  • CoP Spawn
    • Events
      • <Your Event> Probably when the mini game starts
    • Conditions
    • Actions
      • Set Integer[0] = (Random integer number between 1 and 5)
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Integer[0] Equal to (==) 1
          • Then - Actions
            • Set Spawn = (Center of Rect 001 <gen>)
            • Unit - Create 1 Circle of Power for Player 1 (Red) at Spawn facing Default building facing (270.0) degrees
            • Custom script: call RemoveLocation( udg_Spawn )
          • Else - Actions
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Integer[0] Equal to (==) 2
          • Then - Actions
            • Set Spawn = (Center of Rect 002 <gen>)
            • Unit - Create 1 Circle of Power for Player 1 (Red) at Spawn facing Default building facing (270.0) degrees
            • Custom script: call RemoveLocation( udg_Spawn )
          • Else - Actions
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Integer[0] Equal to (==) 3
          • Then - Actions
            • Set Spawn = (Center of Rect 003 <gen>)
            • Unit - Create 1 Circle of Power for Player 1 (Red) at Spawn facing Default building facing (270.0) degrees
            • Custom script: call RemoveLocation( udg_Spawn )
          • Else - Actions
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Integer[0] Equal to (==) 4
          • Then - Actions
            • Set Spawn = (Center of Rect 004 <gen>)
            • Unit - Create 1 Circle of Power for Player 1 (Red) at Spawn facing Default building facing (270.0) degrees
            • Custom script: call RemoveLocation( udg_Spawn )
          • Else - Actions
        • Multiple FunctionsIf (All Conditions are True) then do (Then Actions) else do (Else Actions)
          • If - Conditions
            • Integer[0] Equal to (==) 5
          • Then - Actions
            • Set Spawn = (Center of Rect 005 <gen>)
            • Unit - Create 1 Circle of Power for Player 1 (Red) at Spawn facing Default building facing (270.0) degrees
            • Custom script: call RemoveLocation( udg_Spawn )
          • Else - Actions
Note: The Rect 001\002\003 etc are the individual regions in witch you want them to spawn.
 
Status
Not open for further replies.
Top