Here's the deal, I want my fireball to explode when it "hits" the location I set
when I began to cast the spell. I tried many ways before coming here. I think
its either I made a mistake somewhere or it cannot be made that way. I don't
really know so I'm asking people here to check it out and see what can be
done or if this is off the limit GUI can do.
Thanks.
when I began to cast the spell. I tried many ways before coming here. I think
its either I made a mistake somewhere or it cannot be made that way. I don't
really know so I'm asking people here to check it out and see what can be
done or if this is off the limit GUI can do.
Thanks.
-
NewUnitAddToTrigg
-
Events
- Unit - A unit enters (Entire map)
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Fireball Dummy
-
Actions
- Trigger - Add to FireballDamage <gen> the event (Unit - A unit comes within 25.00 of (Triggering unit))
-
Events
-
Fireball
-
Events
- Unit - A unit Starts the effect of an ability
-
Conditions
- (Ability being cast) Equal to Burning - Fireball
-
Actions
- Custom script: local unit udg_Fireball_Caster
- Custom script: local unit udg_Fireball_Loc
- Set Fireball_Caster = (Triggering unit)
- Set Temp_Loc = (Target point of ability being cast)
- Unit - Create 1 Fireball Dummy for (Owner of Fireball_Caster) at Temp_Loc facing Default building facing degrees
- Custom script: call RemoveLocation(udg_Temp_Loc)
- Unit - Add a 15.00 second Generic expiration timer to (Last created unit)
- Set Fireball_Loc = (Last created unit)
- Wait 2.30 seconds
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
- (Current order of Fireball_Caster) Equal to (Order("coldarrows"))
-
Then - Actions
- Set Temp_Loc = (Position of Fireball_Caster)
- Special Effect - Create a special effect at Temp_Loc using Abilities\Spells\Demon\DarkPortal\DarkPortalTarget.mdl
- Special Effect - Destroy (Last created special effect)
- Unit - Create 1 Fireball Unit for (Owner of Fireball_Caster) at Temp_Loc facing Default building facing degrees
- Unit - Add a 10.00 second Generic expiration timer to (Last created unit)
- Custom script: call RemoveLocation(udg_Temp_Loc)
- Set Temp_Loc = (Position of Fireball_Loc)
- Unit - Order (Last created unit) to Move To Temp_Loc
- Custom script: call RemoveLocation(udg_Temp_Loc)
- Else - Actions
-
If - Conditions
- Set Fireball_Caster = No unit
- Set Fireball_Loc = No unit
-
Events
-
FireballDamage
- Events
-
Conditions
- (Unit-type of (Triggering unit)) Equal to Fireball Unit
-
Actions
- Set Temp_Loc = (Position of (Triggering unit))
- Set Temp_Group = (Units within 300.00 of Temp_Loc matching (((Owner of (Matching unit)) is an enemy of (Owner of (Triggering unit))) Equal to True))
- Unit - Kill (Triggering unit)
- Special Effect - Create a special effect at Temp_Loc using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
- Special Effect - Destroy (Last created special effect)
-
Unit Group - Pick every unit in Temp_Group and do (Actions)
-
Loop - Actions
- Unit - Set life of (Picked unit) to ((Life of (Picked unit)) - 90.00)
-
Loop - Actions
- Custom script: call RemoveLocation(udg_Temp_Loc)
- Custom script: call DestroyGroup(udg_Temp_Group)
Last edited: