- Joined
- Aug 14, 2006
- Messages
- 7,614
Hey.
I'm doing an item that heals a wielder by 5% per 1 "square". I tried something and it works somehow. The percents are however not working and I don't know how to fix/calculate them so I posted to ask you guys how to fix the problem.
I have attached the map here, so please look at it and make the needed changes. The one who helps will have some rep & credits.
I'm doing an item that heals a wielder by 5% per 1 "square". I tried something and it works somehow. The percents are however not working and I don't know how to fix/calculate them so I posted to ask you guys how to fix the problem.
I have attached the map here, so please look at it and make the needed changes. The one who helps will have some rep & credits.
-
Untitled Trigger 001
-
Events
-
Time - Every 1.00 seconds of game time
-
-
Conditions
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(AAAPhodom has an item of type Claws of Attack +15) Equal to True
-
-
Then - Actions
-
Set AerialShoesPoint[1] = (Position of (Picked unit))
-
Wait 0.50 seconds
-
Set TempLoc = (Position of AAAPhodom)
-
Set TempReal = ((Distance between AerialShoesPoint[1] and TempLoc) / 255.00)
-
Unit - Set life of AAAPhodom to ((Life of AAAPhodom) + TempReal)%
-
Custom script: call RemoveLocation(udg_TempLoc)
-
Custom script: call RemoveLocation(udg_AerialShoesPoint[2])
-
-
Else - Actions
-
-
-