- Joined
- Jan 14, 2008
- Messages
- 366
okay so what i want to do is the following:
the unit buys a powerup from a shop. the powerups name is equivalent to the ability that buying the powerup will give the hero.
BUT, abilities should not overwrite each other. they all occupy the same hotkey slot.
so when a hero buys apowerup, the trigger must check wether the bought powerup is equivalent to the ability the hero already has BECAUSE
if it is: set that abilities level+1
if its not: show error message
if there is no ability: give the hero that ability (set to level 1)
any help immensly appreciated!
the unit buys a powerup from a shop. the powerups name is equivalent to the ability that buying the powerup will give the hero.
BUT, abilities should not overwrite each other. they all occupy the same hotkey slot.
so when a hero buys apowerup, the trigger must check wether the bought powerup is equivalent to the ability the hero already has BECAUSE
if it is: set that abilities level+1
if its not: show error message
if there is no ability: give the hero that ability (set to level 1)
-
ability bought
-
Events
- Unit - A unit Acquires an item
-
Conditions
-
Or - Any (Conditions) are true
-
Conditions
- (Item-type of (Item being manipulated)) Equal to Battlecry
- (Item-type of (Item being manipulated)) Equal to Berserk
- (Item-type of (Item being manipulated)) Equal to Blink
- (Item-type of (Item being manipulated)) Equal to Healing touch
- (Item-type of (Item being manipulated)) Equal to Invisibility
-
Conditions
-
Or - Any (Conditions) are true
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
- If - Conditions
- Then - Actions
- Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
any help immensly appreciated!