[Trigger] removing destructible and spawning one

Status
Not open for further replies.
Level 4
Joined
Nov 17, 2007
Messages
57
Unit - A unit Starts the effect of an ability

(Ability being cast) Equal to Reinforce Barrel

If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Destructible-type of (Target destructible of ability being cast)) Equal to Barrel 1
Then - Actions
Destructible - Remove (Target destructible of ability being cast)
Destructible - Create a Barrel 2 at (Position of (Target destructible of ability being cast)) facing (Random angle) with scale 1.25 and variation 0
Else - Actions
Do nothing


thats my trigger, and if i did something terrible wrong so you dont understand it: i want a unit to cast an ability, the destructible its cast on gets removed, and spawns another destructible (its kinda like upgrading, cus the destructibles are basically your defense)
 
Seas ;)

hmm I dont know, but maybe you change the barrle creation and the removing.

  • Actions:
    • Destructible - Create a Target Barrel at (Position of (Target destructible of ability being cast)) facing (Random angle) with scale 1.00 and variation 0
    • Destructible - Remove (Target destructible of ability being cast)
Hmm I tested it and it works fine^^ (if I take your trigger - the barrel is new created at the caster :eekani: )

MfG
Dr. Boom
 
Status
Not open for further replies.
Back
Top