Gandhi11 wrote:
Actually, the -kill pwnz enemy heroes and sometimes allied heroes..without me selecting it.. :O
I know of ways to fixeth this!
My -kill + -killfast works fine =p
Edit:
Place this somewhere with any player types - as a substring...
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
((Entered chat string) Equal to -kill) or ((Entered chat string) Equal to -killany)
Then - Actions
Set kill = No unit
Trigger - Reset kill <gen>
Wait 0.02 seconds
Trigger - Turn on kill <gen>
Wait 0.02 seconds
Trigger - Add to kill <gen> the event (Player - (Triggering player) Selects a unit)
Wait 0.02 seconds
Trigger - Turn on kill <gen>
Wait 0.02 seconds
Game - Display to (Triggering player), at offset (0.00, 0.00) the text: Ok, please select A...
Wait until (kill Not equal to No unit), checking every 1.00 seconds
Dialog - Clear kdialog
Dialog - Create a dialog button for kdialog labelled (|cff191970Yes|r, Kill + (Name of kill))
Set kyes = (Last created dialog Button)
Dialog - Create a dialog button for kdialog labelled (|cffFF0000No|r, Do not kill + (Name of kill))
Dialog - Show kdialog for (Triggering player)
Else - Actions
make a new trigger containing this, with no events, only conditions and actions.
C:
Code:
((Triggering player) is in Xantan) Equal to True
(or a random variable for you're 'cheat activation'
A:
Code:
Set numberofcommands[(Player number of (Triggering player))] = (numberofcommands[(Player number of (Triggering player))] + 1)
Set kill = (Triggering unit)
Set kill_Copy[(Integer((Name of (Player((Player number of (Triggering player)))))))] = (Triggering unit)
Trigger - Turn off (This trigger)
Oh and I guess I used another trigger for dialogs...
E
Code:
Dialog - A dialog button is clicked for kdialog
A
Code:
Set kill = kill_Copy[(Integer((Name of (Player((Player number of (Triggering player)))))))]
C
Code:
((Triggering player) is in Xantan) Equal to True
Code:
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Clicked dialog button) Equal to kyes
Then - Actions
Unit - Kill kill
Else - Actions