- Joined
- Sep 29, 2006
- Messages
- 447
okay so im trying to make a system in my map that boots team killers. basically if you kill an allied hero 3 times, the player you killed gets the option to boot you (through dialogue boxes) right now i have no way to test it so i was wondering if someone could take a look at my triggers and tell me if you see any bugs or mistakes and such. here they are
-
boot player integer
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
((Killing unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True
-
-
Actions
-
Set BootPlayer[(Player number of (Owner of (Killing unit)))] = (BootPlayer[(Player number of (Owner of (Killing unit)))] + 1)
-
-
-
boot player show
-
Events
-
Unit - A unit Dies
-
-
Conditions
-
((Triggering unit) is A Hero) Equal to True
-
((Killing unit) belongs to an ally of (Owner of (Triggering unit))) Equal to True
-
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
BootPlayer[(Player number of (Owner of (Killing unit)))] Greater than or equal to 3
-
-
Then - Actions
-
Set BootedPlayer = (Owner of (Killing unit))
-
Dialog - Clear boot_dialog
-
Dialog - Change the title of boot_dialog to (cc_player[(Player number of (Owner of (Attacking unit)))] + (end_tag + has killed you |nBoot Player?))
-
Dialog - Create a dialog button for boot_dialog labelled Yes
-
Set dialog_button[1] = (Last created dialog Button)
-
Dialog - Create a dialog button for boot_dialog labelled No
-
Set dialog_button[2] = (Last created dialog Button)
-
Dialog - Show boot_dialog for (Owner of (Triggering unit))
-
-
Else - Actions
-
-
-
-
boot player
-
Events
-
Dialog - A dialog button is clicked for boot_dialog
-
-
Conditions
-
(Clicked dialog button) Equal to dialog_button[1]
-
-
Actions
-
Game - Defeat BootedPlayer with the message: You have been boote...
-
-
-
no boot player
-
Events
-
Dialog - A dialog button is clicked for boot_dialog
-
-
Conditions
-
(Clicked dialog button) Equal to dialog_button[2]
-
-
Actions
-
Player Group - Pick every player in (All Players) and do (Actions)
-
Loop - Actions
-
Dialog - Hide boot_dialog for (Picked player)
-
-
-
-
Last edited: