- Joined
- Aug 19, 2009
- Messages
- 65
I need help in thins, i want to create a Circle of Power in random region ... How do i do this??
Pls help
Pls help
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
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 )
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
Bad. You use array for having 1000 different integers instead of 1000 different integer variables.Depends weather or not you are going to use that variable again.
Bad. You use array for having 1000 different integers instead of 1000 different integer variables.
You don't require array.