- Joined
- Jan 28, 2013
- Messages
- 94
Me and a friend are making a map together. My friend made a Druid ability for a hero unit where the hero unit morphs into a bear. He altered the Battle Roar ability and made it into a Dummy ability with not active or passive effects. I helped him with the trigger but for some reason it doesn't work. When Bear unit uses its Battle Roar it chages back to the Druid instead of using the Battle Roar ability! The morph ability also causes the Battle Roar buff. I've wrecked my mind over this but I don't know how to solve it.
Here are the triggers:
Please help?
Here are the triggers:
-
Bear FormP1
-
Events
- Unit - A unit Begins casting an ability
-
Conditions
- (Ability being cast) Equal to Bear (Dummy)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Triggering player) Equal to Player 1 (Red)
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Casting unit)) Equal to Druid
-
Then - Actions
- Set CasterDruid = (Casting unit)
- Set DruidPoint = (Position of CasterDruid)
- Set DruidXp = (Hero experience of Player1Hero)
- Set P1_HeroName = (Proper name of Player1Hero)
- Unit - Hide CasterDruid
- Unit - Make CasterDruid Invulnerable
- Unit - Change ownership of CasterDruid to Neutral Passive and Retain color
- Unit - Create 1 Bear for Player 1 (Red) at DruidPoint facing (Facing of CasterDruid) degrees
- Set BearForm = (Last created unit)
- Hero - Set BearForm experience to DruidXp, Hide level-up graphics
- Hero - Learn skill for BearForm: Bear (Dummy)
- Game - Display to (All players) the text: Debug -- BearForm c...
- Trigger - Turn off (This trigger)
- Trigger - Turn on Bear to DruidP1 <gen>
- Trigger - Turn on Druid to BearP1 <gen>
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Else - Actions
- Do nothing
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Druid to BearP1
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Bear (Dummy)
- (Owner of (Casting unit)) Equal to Player 1 (Red)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Casting unit)) Equal to Druid
-
Then - Actions
- Set CasterDruid = (Casting unit)
- Set DruidPoint = (Position of CasterDruid)
- Set DruidXp = (Hero experience of CasterDruid)
- Unit - Hide CasterDruid
- Unit - Make CasterDruid Invulnerable
- Unit - Change ownership of CasterDruid to Neutral Passive and Retain color
- Unit - Move BearForm instantly to DruidPoint
- Unit - Make BearForm face (Facing of CasterDruid) over 0.00 seconds
- Unit - Make BearForm Vulnerable
- Unit - Change ownership of BearForm to Player 1 (Red) and Retain color
- Unit - Unhide BearForm
- Hero - Set BearForm experience to DruidXp, Hide level-up graphics
- Game - Display to (All players) the text: Debug -- Bear Summo...
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Bear to DruidP1
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Bear (Dummy)
- (Owner of (Casting unit)) Equal to Player 1 (Red)
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Unit-type of (Casting unit)) Equal to Bear
-
Then - Actions
- Set BearForm = (Casting unit)
- Set DruidPoint = (Position of BearForm)
- Set DruidXp = (Hero experience of BearForm)
- Unit - Hide BearForm
- Unit - Make BearForm Invulnerable
- Unit - Change ownership of BearForm to Neutral Passive and Retain color
- Unit - Move CasterDruid instantly to DruidPoint
- Unit - Make CasterDruid face (Facing of BearForm) over 0.00 seconds
- Unit - Make CasterDruid Vulnerable
- Unit - Change ownership of CasterDruid to Player 1 (Red) and Retain color
- Unit - Unhide CasterDruid
- Hero - Set CasterDruid experience to DruidXp, Hide level-up graphics
- Game - Display to (All players) the text: Debug -- Druid Summ...
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
Please help?