- Joined
- Nov 12, 2011
- Messages
- 46
This is my attempt making a skill that steal gold and damaging the targeted enemy. but i cant tell if it is leaking, or if it will work. Can anyone give me an opinion
tested and it is stuck using the level one gold steal and i cant tell if it is steal gold from the other player at all.
i would like some help fixing this code.
-
Mugging
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Mugging[Q]
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Mugging[Q] for (Triggering unit)) Equal to 1
-
Then - Actions
- Set Gold_Stolen = (5 + (Intelligence of (Triggering unit) (Exclude bonuses)))
- Player - Add Gold_Stolen to (Owner of (Triggering unit)) Current gold
- Player - Add (-1 x Gold_Stolen) to (Owner of (Target unit of ability being cast)) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Mugging[Q] for (Triggering unit)) Equal to 2
-
Then - Actions
- Set Gold_Stolen = (10 + (Intelligence of (Triggering unit) (Exclude bonuses)))
- Player - Add Gold_Stolen to (Owner of (Triggering unit)) Current gold
- Player - Add (-1 x Gold_Stolen) to (Owner of (Target unit of ability being cast)) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Mugging[Q] for (Triggering unit)) Equal to 3
-
Then - Actions
- Set Gold_Stolen = (20 + (Intelligence of (Triggering unit) (Exclude bonuses)))
- Player - Add Gold_Stolen to (Owner of (Triggering unit)) Current gold
- Player - Add (-1 x Gold_Stolen) to (Owner of (Target unit of ability being cast)) Current gold
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Mugging[Q] for (Triggering unit)) Equal to 4
-
Then - Actions
- Set Gold_Stolen = (40 + (Intelligence of (Triggering unit) (Exclude bonuses)))
- Player - Add Gold_Stolen to (Owner of (Triggering unit)) Current gold
- Player - Add (-1 x Gold_Stolen) to (Owner of (Target unit of ability being cast)) Current gold
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
i would like some help fixing this code.
Last edited: