- Joined
- Mar 23, 2008
- Messages
- 942
Well... Seems like every time I try to do a custom spell, I fails...
Well, back to the trigger:
And I can't use wait, because you wouldn't be able to recast the buf to renew the time.
Edit: Added a debug message to the trigger, now it only spam "This trigger is working", nothing more...
Edit2: Also, the bonus from the skill does not increase with level.
Well, back to the trigger:
-
Blessing
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Blessing (based in channel)
-
Actions
- Unit - Add Blessing (based in Item Hero Stat Bonus) to (Target unit of ability being cast)
- Unit - Set level of Blessing (based in Item Hero Stat Bonus) for (Target unit of ability being cast) to (Level of (Ability being cast) for (Triggering unit))
- Set SpellPoint[0] = (Position of (Target unit of ability being cast))
- Unit - Create 1 Dummy Caster for (Owner of (Triggering unit)) at SpellPoint[0] facing Default building facing degrees
- Unit - Order (Last created unit) to Human Priest - Inner Fire (Target unit of ability being cast)
- Unit - Add a 5.00 second Generic expiration timer to (Last created unit)
- Special Effect - Create a special effect at SpellPoint[0] using Abilities\Spells\Human\Polymorph\PolyMorphDoneGround.mdl
- Special Effect - Destroy (Last created special effect)
- Sound - Play FaerieFireLaunch1 <gen> at 100.00% volume, located at SpellPoint[0] with Z offset 0.00
- Sound - Destroy (Last played sound)
- Trigger - Turn on Check Blessing <gen>
- Custom script: call RemoveLocation(udg_SpellPoint[0])
-
Events
-
Check Blessing
-
Events
- Time - Every 1.00 seconds of game time
- Conditions
-
Actions
- Game - Display to (All players) the text: This trigger is wor...
- Custom script: set bj_wantDestroyGroup = true
-
Unit Group - Pick every unit in (Units in (Playable map area) matching ((Level of Blessing (based in Item Hero Stat Bonus) for (Picked unit)) Greater than 0)) and do (Actions)
-
Loop - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- ((Picked unit) has buff Blessing (based in wind walk)) Equal to False
-
Then - Actions
- Unit - Remove Blessing (based in Item Hero Stat Bonus) from (Picked unit)
- Game - Display to (All players) the text: This trigger did so...
-
Else - Actions
- Game - Display to (All players) the text: This trigger did no...
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Loop - Actions
-
Events
And I can't use wait, because you wouldn't be able to recast the buf to renew the time.
Edit: Added a debug message to the trigger, now it only spam "This trigger is working", nothing more...
Edit2: Also, the bonus from the skill does not increase with level.