- Joined
- Jun 13, 2012
- Messages
- 113
the problem is i want a player for example player red to attack an enemy player lets say player blue and then when the timer expires player red next wave of units attack player teal and so on.
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.
init

Events


Map initialization

Conditions

Actions


Countdown Timer - Start gametimer as a Repeating timer that will expire in 30.00 seconds
main

Events


Time - gametimer expires

Conditions

Actions


Unit Group - Pick every unit in (Units owned by Player 1 (Red)) and do (Actions)



Loop - Actions




Unit - Order (Picked unit) to Attack Ground playerpoints[playernumber]




Set playernumber = (playernumber + 1)


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



If - Conditions




playernumber Equal to (Number of players)



Then - Actions




Set playernumber = 1



Else - Actions
Timer

Ereignisse


Map initialization

Bedingungen

Aktionen


Countdown-Timer - Start Timer1 as a Wiederholt timer that will expire in 30.00 seconds
Order

Ereignisse


Einheit - A unit enters YourSpawn <gen>

Bedingungen

Aktionen


Einheit - Order (Entering unit) to Angreifen/Bewegen nach (Center of Position)
Change

Ereignisse


Zeit - Timer1 expires

Bedingungen

Aktionen


If (All Conditions are True) then do (Then Actions) else do (Else Actions)



'IF'-Bedingungen




counter Gleich 1



'THEN'-Aktionen




Set Position = Enemy 2 <gen>




Set counter = 0



'ELSE'-Aktionen




Set Position = Enemy 1 <gen>




Set counter = 1
Actions

Countdown Timer - Start timer_variable as a One-shot timer that will expire in 30.00 seconds

Set timer_variable = (Last started timer)
you need to set the countdown timer into the variable not only create it
Actions
Countdown Timer - Start timer_variable as a One-shot timer that will expire in 30.00 seconds
Set timer_variable = (Last started timer)