shawtybaby
New Member
- Reaction score
- 3
Hello, I want a similar deny system like the one in DotA.
in dota, there's an anti-kill system. but the ''deny system'' allows players to kill an allied unit with less than 100 HP or so.
How can I make such a system? i've tried different if/then/else conditions.
in dota, there's an anti-kill system. but the ''deny system'' allows players to kill an allied unit with less than 100 HP or so.
How can I make such a system? i've tried different if/then/else conditions.
Code:
deny TK
Events
Unit - A unit Is attacked
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(((Owner of (Attacked unit)) is an ally of (Owner of (Attacking unit))) Equal to True) and (((Attacked unit) is A Hero) Equal to True)
Then - Actions
Unit - Order (Attacking unit) to Stop
Else - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Life of (Attacked unit)) Less than or equal to 100.00
Then - Actions
Skip remaining actions
Else - Actions
Do nothing