- Joined
- Mar 30, 2006
- Messages
- 60
Hi,
got a problem with a spell:
Spell Effect:
Frost Lance hits enemy -> Enemy Frozen -> enemy vertex coloring to bluish color -> buff wears off -> unit gets back normal vertex color
Should be MUI, and I created the spell this way (most basic I think)
However, the trigger fires and TempUnit is set (I checked by debugging), but the Vertex Color is not changed. The spell is based off Stormbolt.
Any halp plox?
got a problem with a spell:
Spell Effect:
Frost Lance hits enemy -> Enemy Frozen -> enemy vertex coloring to bluish color -> buff wears off -> unit gets back normal vertex color
Should be MUI, and I created the spell this way (most basic I think)
Code:
IceBolt
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Ice Bolt (Magistrix)
Actions
Custom script: local unit udg_TempUnit = GetSpellTargetUnit()
Wait until ((TempUnit has buff Ice Bolt ) Equal to True), checking every 0.10 seconds
Animation - Change TempUnit's vertex coloring to (0.00%, 25.00%, 85.00%) with 1.00% transparency
Wait until ((TempUnit has buff Ice Bolt ) Equal to False), checking every 0.10 seconds
Animation - Change TempUnit's vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
Custom script: set udg_TempUnit = null
However, the trigger fires and TempUnit is set (I checked by debugging), but the Vertex Color is not changed. The spell is based off Stormbolt.
Any halp plox?