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.
Kill

Events


Unit - A unit Dies

Conditions

Actions


Set Team_1 = (All allies of Player 1 (Red))


Set Team_2 = (All enemies of Player 1 (Red))


Player Group - Pick every player in Team_1 and do (Actions)



Loop - Actions




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





If - Conditions






(Owner of (Triggering unit)) Equal to (Picked player)





Then - Actions






Set Team_1_Kills = (Team_1_Kills + 1)






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







If - Conditions








Team_1_Kills Equal to 10







Then - Actions








Player Group - Pick every player in Team_1 and do (Actions)









Loop - Actions










Game - Victory (Picked player) (Show dialogs, Show scores)








Custom script: call DestroyForce(udg_Team_1)








Player Group - Pick every player in Team_2 and do (Actions)









Loop - Actions










Game - Defeat (Picked player) with the message: Defeat!








Custom script: call DestroyForce(udg_Team_2)







Else - Actions





Else - Actions


Custom script: call DestroyForce(udg_Team_1)


Player Group - Pick every player in Team_2 and do (Actions)



Loop - Actions




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





If - Conditions






(Owner of (Triggering unit)) Equal to (Picked player)





Then - Actions






Set Team_2_Kills = (Team_2_Kills + 1)






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







If - Conditions








Team_2_Kills Equal to 10







Then - Actions








Player Group - Pick every player in Team_2 and do (Actions)









Loop - Actions










Game - Victory (Picked player) (Show dialogs, Show scores)








Custom script: call DestroyForce(udg_Team_2)








Player Group - Pick every player in Team_1 and do (Actions)









Loop - Actions










Game - Defeat (Picked player) with the message: Defeat!








Custom script: call DestroyForce(udg_Team_1)







Else - Actions





Else - Actions


Custom script: call DestroyForce(udg_Team_2)
|
@Legal_Ease, if the players are divided so that T1 = P1-P5 and T2 = P6-P10, then you could just use "Player number of triggering player < x".
if pnumber < 6 then
--set index = 1
else
--set index = 2
endif
set kills[index] = kills[index] + 1
if kills[index] >= y then
--victory
So instead of three triggers, you could use only one.
Filter out ally kills, "owner of triggering unit is an enemy of killing unit".
No point in having two people write two different systems for the same thing.
yes this gives options and improves someones coding in case the other person made it better / more efficient.
@TO
u cant give 5 rep to ppl yet.
Well, its nice to know if someone is doing it instead of finding out on your own.
the thought is nice its just misleading. i thought i should correct him. i think he also gives rep to anyone that helps not just one person which i believe is the right thing to do.@TO
He's right but its the thought that counts I guess![]()
