- Joined
- Dec 5, 2009
- Messages
- 846
How can i detect how many abilities a hero has learned?
I want to do something like this but with abilities instead..
So how to do like this with abilities?
I want to do something like this but with abilities instead..
-
For each (Integer A) from 1 to 6, do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Item carried by (Picked unit) in slot (Integer A)) is owned) Equal to True
-
-
Then - Actions
-
Set SaveCount = (SaveCount + 1)
-
Set TempItem = (Item carried by (Picked unit) in slot (Integer A))
-
Item - Set the custom value of TempItem to (Player number of (Triggering player))
-
Custom script: set udg_Save[udg_SaveCount] = SaveLoad_Item2Integer( udg_TempItem )
-
-
Else - Actions
-
-
-
So how to do like this with abilities?