- Joined
- Jun 12, 2007
- Messages
- 1,261
Oke, I made a very simple custom spell for this guy.
And it's working just fine.
I'm new to the whole custom spell thing but this one has a problem.
Sometimes the vertex coloring does not appear or disappears to soon, here are the triggers:
And it's working just fine.
I'm new to the whole custom spell thing but this one has a problem.
Sometimes the vertex coloring does not appear or disappears to soon, here are the triggers:
-
Your Spell
-
Events
- Unit - A unit Finishes casting an ability
-
Conditions
- (Ability being cast) Equal to Inner Power [I]
-
Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Inner Power [I] for (Triggering unit)) Equal to 1
-
Then - Actions
- Set PowerLoc[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
- Set PowerCaster[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at PowerLoc[(Player number of (Owner of (Triggering unit)))] facing 0.00 degrees
- Unit - Add Power 1 to (Last created unit)
- Unit - Order (Last created unit) to Human Priest - Inner Fire PowerCaster[(Player number of (Owner of (Triggering unit)))]
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Animation - Change PowerCaster[(Player number of (Owner of (Triggering unit)))]'s vertex coloring to (10.00%, 10.00%, 20.00%) with 10.00% transparency
- Floating Text - Create floating text that reads Inner Power [Rank 1] at PowerLoc[(Player number of (Owner of (Triggering unit)))] with Z offset 0.00, using font size 10.00, color (0.00%, 50.00%, 90.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 30.00 towards (Random real number between 70.00 and 110.00) degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
- Custom script: call RemoveLocation(udg_PowerLoc[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Inner Power [I] for (Triggering unit)) Equal to 2
-
Then - Actions
- Set PowerLoc[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
- Set PowerCaster[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at PowerLoc[(Player number of (Owner of (Triggering unit)))] facing 0.00 degrees
- Unit - Add Power 2 to (Last created unit)
- Unit - Order (Last created unit) to Human Priest - Inner Fire PowerCaster[(Player number of (Owner of (Triggering unit)))]
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Animation - Change PowerCaster[(Player number of (Owner of (Triggering unit)))]'s vertex coloring to (10.00%, 10.00%, 20.00%) with 10.00% transparency
- Floating Text - Create floating text that reads Inner Power [Rank 2] at PowerLoc[(Player number of (Owner of (Triggering unit)))] with Z offset 0.00, using font size 10.00, color (0.00%, 50.00%, 90.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 30.00 towards (Random real number between 70.00 and 110.00) degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
- Custom script: call RemoveLocation(udg_PowerLoc[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Inner Power [I] for (Triggering unit)) Equal to 3
-
Then - Actions
- Set PowerLoc[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
- Set PowerCaster[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at PowerLoc[(Player number of (Owner of (Triggering unit)))] facing 0.00 degrees
- Unit - Add Power 3 to (Last created unit)
- Unit - Order (Last created unit) to Human Priest - Inner Fire PowerCaster[(Player number of (Owner of (Triggering unit)))]
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Animation - Change PowerCaster[(Player number of (Owner of (Triggering unit)))]'s vertex coloring to (10.00%, 10.00%, 20.00%) with 10.00% transparency
- Floating Text - Create floating text that reads Inner Power [Rank 3] at PowerLoc[(Player number of (Owner of (Triggering unit)))] with Z offset 0.00, using font size 10.00, color (0.00%, 50.00%, 90.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 30.00 towards (Random real number between 70.00 and 110.00) degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
- Custom script: call RemoveLocation(udg_PowerLoc[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
-
Else - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Level of Inner Power [I] for (Triggering unit)) Equal to 4
-
Then - Actions
- Set PowerLoc[(Player number of (Owner of (Triggering unit)))] = (Position of (Triggering unit))
- Set PowerCaster[(Player number of (Owner of (Triggering unit)))] = (Triggering unit)
- Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at PowerLoc[(Player number of (Owner of (Triggering unit)))] facing 0.00 degrees
- Unit - Add Power 4 to (Last created unit)
- Unit - Order (Last created unit) to Human Priest - Inner Fire PowerCaster[(Player number of (Owner of (Triggering unit)))]
- Unit - Add a 3.00 second Generic expiration timer to (Last created unit)
- Animation - Change PowerCaster[(Player number of (Owner of (Triggering unit)))]'s vertex coloring to (10.00%, 10.00%, 20.00%) with 10.00% transparency
- Floating Text - Create floating text that reads Inner Power [Rank 4] at PowerLoc[(Player number of (Owner of (Triggering unit)))] with Z offset 0.00, using font size 10.00, color (0.00%, 50.00%, 90.00%), and 0.00% transparency
- Floating Text - Set the velocity of (Last created floating text) to 30.00 towards (Random real number between 70.00 and 110.00) degrees
- Floating Text - Change (Last created floating text): Disable permanence
- Floating Text - Change the lifespan of (Last created floating text) to 5.00 seconds
- Floating Text - Change the fading age of (Last created floating text) to 3.00 seconds
- Custom script: call RemoveLocation(udg_PowerLoc[GetConvertedPlayerId(GetOwningPlayer(GetTriggerUnit()))])
- Else - Actions
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
Events
-
Your Spell 2
-
Events
- Time - Every 0.50 seconds of game time
-
Conditions
- (PowerCaster[(Player number of (Owner of (Triggering unit)))] has buff Inner Power) Equal to False
-
Actions
- Animation - Change PowerCaster[(Player number of (Owner of (Triggering unit)))]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
-
Events