- Joined
- Sep 11, 2011
- Messages
- 1,176
i am having a problem converting a real to integer and using them to change the multiboard's text, but it won't change.
well, this is the trigger :
is there a way to make (Integer(damage_taken))) working?
well, this is the trigger :
-
gain exp
-
Events
- Unit - A unit Is attacked
-
Conditions
- (Unit-type of (Attacked unit)) Equal to Murloc Tiderunner
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Owner of (Attacking unit)) Equal to Player 1 (Red)
-
Then - Actions
- Set i = 1
- Set damage_taken = ((Damage taken) / 0.04)
- Set unit_exp[i] = (unit_exp[i] + (Integer(damage_taken)))
- Multiboard - Set the text for multiboard[i] item in column 2, row 3 to (String(unit_exp[i]))
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
is there a way to make (Integer(damage_taken))) working?