• Check out the results of the Techtree Contest #19!
  • Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • Create a void inspired texture for Warcraft 3 and enter Hive's 34th Texturing Contest: Void! Click here to enter!
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!

[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