gamer102
07-30-2006, 10:20 PM
Here's the simple code for creating a trigger that adds an ability or increases the level
Trigger
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Item
Actions
If ((Level of Ability for (Hero manipulating item)) Equal to 0) then do (Unit - Add Ability to (Hero manipulating item)) else do (Unit - Increase level of Abilty for (Hero manipulating item))
If a unit does not have an ability, it gives it to them, if it already has it, it levels that ability up. Simple
Trigger
Events
Unit - A unit Uses an item
Conditions
(Item-type of (Item being manipulated)) Equal to Item
Actions
If ((Level of Ability for (Hero manipulating item)) Equal to 0) then do (Unit - Add Ability to (Hero manipulating item)) else do (Unit - Increase level of Abilty for (Hero manipulating item))
If a unit does not have an ability, it gives it to them, if it already has it, it levels that ability up. Simple