Hi
Had a similar situation with changing the level of an originally "item" ability. Previously with the "item stat bonus" abilities but now with the "item health" ability. The idea is that you pick up an item and it gives you bonus health depending on your level. The ability is not actually on the item as it is triggered to add the ability when the item is picked up, the level is then changed on pickup and level up, and removed when it is dropped.
Situation again is that the ability doesn't actually level up, even when i added a message to show the ability level (which showed correctly) it's bonuses didn't add up (it stayed level 1).
Any ideas?
P.S. I'm aware that i could set the unit as a variable but it's just to see if it would actually work (had planned to have different ones which did damage, armor, mana etc)
Had a similar situation with changing the level of an originally "item" ability. Previously with the "item stat bonus" abilities but now with the "item health" ability. The idea is that you pick up an item and it gives you bonus health depending on your level. The ability is not actually on the item as it is triggered to add the ability when the item is picked up, the level is then changed on pickup and level up, and removed when it is dropped.
Situation again is that the ability doesn't actually level up, even when i added a message to show the ability level (which showed correctly) it's bonuses didn't add up (it stayed level 1).
Any ideas?
P.S. I'm aware that i could set the unit as a variable but it's just to see if it would actually work (had planned to have different ones which did damage, armor, mana etc)
-
Relic Pick Up
-
Events
-
Unit - A unit Acquires an item
-
-
Conditions
-
((Hero manipulating item) is A Hero) Equal to True
-
-
Actions
-
-------- Vitality Relic --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to |c00540081Vitality Relic|r
-
(Level of Vitality Relic for (Hero manipulating item)) Equal to 0
-
-
Then - Actions
-
Unit - Add Vitality Relic to (Hero manipulating item)
-
Unit - Set level of Vitality Relic for (Hero manipulating item) to (Hero level of (Hero manipulating item))
-
-
Else - Actions
-
-
-
-
Relic Update
-
Events
-
Unit - A unit Gains a level
-
-
Conditions
-
Actions
-
-------- Vitality Relic --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
((Leveling Hero) has an item of type |c00540081Vitality Relic|r) Equal to True
-
-
Then - Actions
-
Unit - Set level of Vitality Relic for (Leveling Hero) to (Hero level of (Leveling Hero))
-
-
Else - Actions
-
-
-
-
Relic Drop
-
Events
-
Unit - A unit Loses an item
-
-
Conditions
-
Actions
-
-------- Vitality Relic --------
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Item-type of (Item being manipulated)) Equal to |c00540081Vitality Relic|r
-
((Hero manipulating item) has an item of type |c00540081Vitality Relic|r) Equal to False
-
-
Then - Actions
-
Unit - Remove Vitality Relic from (Hero manipulating item)
-
-
Else - Actions
-
-
-