SpasMaster
Hosted Project: SC
- Joined
- Jan 29, 2010
- Messages
- 1,986
Hello guys!
I have a question about a triggered ability that I made. It's really simple and everything seems to be perfect, but as usual it isn't... Basically I made an ability based off on Roar [Called Avenging Wrath]. I edited the object editor field of the ability to give 25% bonus damage. That's working fine. With a trigger I add item abilities to the hero (Intelligence and Strength, Attack Speed and Armor.) and set their level to the level of the Roar ability. And when the Roar buff is gone, I remove them.
Here is what happens:
•The abilities are added properly.
•But they aren't set to the level of the Roar ability.
How to fix this? : /
Triggers:
[trigger="Avenging Wrath"]Avenging Wrath
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Avenging Wrath
Actions
Set AvengingWrath_Caster = (Triggering unit)
Set AvengingWrath_Ability[1] = Avenging Wrath Armor
Set AvengingWrath_Ability[2] = Avenging Wrath Atk Speed
Set AvengingWrath_Ability[3] = Avenging Wrath Stats
Unit - Add AvengingWrath_Ability[1] to (Triggering unit)
Unit - Set level of AvengingWrath_Ability[1] for (Triggering unit) to (Level of Avenging Wrath for (Triggering unit))
Unit - Add AvengingWrath_Ability[2] to (Triggering unit)
Unit - Set level of AvengingWrath_Ability[2] for (Triggering unit) to (Level of Avenging Wrath for (Triggering unit))
Unit - Add AvengingWrath_Ability[3] to (Triggering unit)
Unit - Set level of AvengingWrath_Ability[3] for (Triggering unit) to (Level of Avenging Wrath for (Triggering unit))
Trigger - Turn on Avenging Wrath 2 <gen>
Trigger - Turn off (This trigger)
[/trigger]
[trigger="Avenging Wrath 2"]Avenging Wrath 2
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(AvengingWrath_Caster has buff Avenging Wrath ) Equal to True
Then - Actions
Else - Actions
Unit - Remove AvengingWrath_Ability[1] from AvengingWrath_Caster
Unit - Remove AvengingWrath_Ability[2] from AvengingWrath_Caster
Unit - Remove AvengingWrath_Ability[3] from AvengingWrath_Caster
Trigger - Turn on Avenging Wrath <gen>
Trigger - Turn off (This trigger)
[/trigger]
I have a question about a triggered ability that I made. It's really simple and everything seems to be perfect, but as usual it isn't... Basically I made an ability based off on Roar [Called Avenging Wrath]. I edited the object editor field of the ability to give 25% bonus damage. That's working fine. With a trigger I add item abilities to the hero (Intelligence and Strength, Attack Speed and Armor.) and set their level to the level of the Roar ability. And when the Roar buff is gone, I remove them.
Here is what happens:
•The abilities are added properly.
•But they aren't set to the level of the Roar ability.
How to fix this? : /
Triggers:
[trigger="Avenging Wrath"]Avenging Wrath
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Avenging Wrath
Actions
Set AvengingWrath_Caster = (Triggering unit)
Set AvengingWrath_Ability[1] = Avenging Wrath Armor
Set AvengingWrath_Ability[2] = Avenging Wrath Atk Speed
Set AvengingWrath_Ability[3] = Avenging Wrath Stats
Unit - Add AvengingWrath_Ability[1] to (Triggering unit)
Unit - Set level of AvengingWrath_Ability[1] for (Triggering unit) to (Level of Avenging Wrath for (Triggering unit))
Unit - Add AvengingWrath_Ability[2] to (Triggering unit)
Unit - Set level of AvengingWrath_Ability[2] for (Triggering unit) to (Level of Avenging Wrath for (Triggering unit))
Unit - Add AvengingWrath_Ability[3] to (Triggering unit)
Unit - Set level of AvengingWrath_Ability[3] for (Triggering unit) to (Level of Avenging Wrath for (Triggering unit))
Trigger - Turn on Avenging Wrath 2 <gen>
Trigger - Turn off (This trigger)
[/trigger]
[trigger="Avenging Wrath 2"]Avenging Wrath 2
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(AvengingWrath_Caster has buff Avenging Wrath ) Equal to True
Then - Actions
Else - Actions
Unit - Remove AvengingWrath_Ability[1] from AvengingWrath_Caster
Unit - Remove AvengingWrath_Ability[2] from AvengingWrath_Caster
Unit - Remove AvengingWrath_Ability[3] from AvengingWrath_Caster
Trigger - Turn on Avenging Wrath <gen>
Trigger - Turn off (This trigger)
[/trigger]