Kusanagi Kuro
Hosted Project: SC
- Joined
- Mar 11, 2012
- Messages
- 708
Hi everyone. I have created a trigger like this:
The problem is although the spell still deal damage but the effect doesnt show off. Instead of showing on the target point of ability being cast, it shows off on the center of the map. And the effect for each target doesnt show off too. I dont know what happen to it. Plz help me.
-
Fire Blast
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Fire Blast
-
Actions
- Set FB_CV = (Custom value of (Triggering unit))
- Set FB_TargetPos[FB_CV] = (Target point of ability being cast)
- Set FB_Caster[FB_CV] = (Triggering unit)
- Set FB_AffectedUnit[FB_CV] = (Units within 300.00 of FB_TargetPos[FB_CV] matching ((((((Matching unit) is A structure) Equal to False) and (((Matching unit) is Magic Immune) Equal to False)) and (((Matching unit) is alive) Equal to True)) and (((Matching unit) belongs to an enemy of (Own
- Set FB_Damage[FB_CV] = (300.00 + (1.00 x (Real((Strength of (Triggering unit) (Include bonuses))))))
- Unit - Pause (Triggering unit)
- Animation - Play (Triggering unit)'s attack spell animation
- Unit - Unpause (Triggering unit)
- Special Effect - Create a special effect at FB_TargetPos[FB_CV] using Abilities\Spells\Human\FlameStrike\FlameStrike1.mdl
- Special Effect - Destroy (Last created special effect)
-
Unit Group - Pick every unit in FB_AffectedUnit[FB_CV] and do (Actions)
-
Loop - Actions
- Unit - Cause FB_Caster[FB_CV] to damage (Picked unit), dealing FB_Damage[FB_CV] damage of attack type Spells and damage type Magic
- Set FB_EffectPoint[FB_CV] = (Position of (Picked unit))
- Special Effect - Create a special effect at FB_EffectPoint[FB_CV] using Doodads\Cinematic\FireTrapUp\FireTrapUp.mdl
- Special Effect - Destroy (Last created special effect)
- Custom script: call RemoveLocation(udg_FB_EffectPoint[udg_FB_CV])
-
Loop - Actions
- Custom script: call RemoveLocation(udg_FB_TargetPos[udg_FB_CV])
- Custom script: call DestroyGroup(udg_FB_AffectedUnit[udg_FB_CV])
-
Events