H
HelpMeNow
Guest
K, in my last two posts ive been learning how to make a hero be able to BUY his skills instead of learning them. I got it to work so that you can buy your ability, and then upgrade the level of the ability by 1 by purchasing the item once more. I wanted the player to be able to purchase the skill up until it is level 10, but for some reason it will only upgrade the ability until it reaches level 3, and then it just quits upgrading. I have set the number of levels for the ability to 10 in the unit editor, but it wont upgrade past level 3. Heres what my triggers look like. ( Using Stormbolt for example)
-----------------------------------------------------
Events-
<Unit-Unit acquires item>
Conditions-
<Item- Item type of (Item being manipulated) equal to (StormBolt)
Actions-
<IF (Level of StormBolt being manipulated by hero is greater than 0) then do (Unit-Increase level of Stormbolt for Hero manipulating item) Else do (IF level of Stormbolt for hero manipulating item equal to 0) then do (Unit- Add stormbolt to hero manipulating item).
I dont understand why it wont upgrade past level 3.
-----------------------------------------------------
Events-
<Unit-Unit acquires item>
Conditions-
<Item- Item type of (Item being manipulated) equal to (StormBolt)
Actions-
<IF (Level of StormBolt being manipulated by hero is greater than 0) then do (Unit-Increase level of Stormbolt for Hero manipulating item) Else do (IF level of Stormbolt for hero manipulating item equal to 0) then do (Unit- Add stormbolt to hero manipulating item).
I dont understand why it wont upgrade past level 3.