• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

Random place in very Regions (pls help)

Status
Not open for further replies.
Level 14
Joined
Nov 2, 2008
Messages
579
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
 
Level 14
Joined
Nov 2, 2008
Messages
579
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