• 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.

[Trigger] Tree Stomping?

Status
Not open for further replies.
Level 45
Joined
Jun 3, 2005
Messages
6,982
Alright, so im trying to make a unit able to crush (basically kill) trees when the unit steps/walks near them, i basically need this for a giant robot unit. I don't want them attacking the trees though.

Iv tried attempting this through triggers (but i suck and the triggers i did..well..are pathetic, no point posting) and iv tried using immolation, Iv set it to attacking trees only and strangely it still doesn't harm trees. Does nothing.

Is there anyway i can achieve this? Whether it be some separate dummy unit, triggers or another aura?

Any help would be appreciated, but mind you, im not very skilled at all with triggers or jass, so please be very basic on your answers so i can understand.

Thankyou.
 
Level 7
Joined
Oct 15, 2005
Messages
283
well as iread about you and triggers why not make a trigger (like when to opendoor and such)

im not much of a triggerer so idont know if this is possible but why not find out


make a trigger where when unit gets near thevtree tree dies (like in the door when unit gets near the door it opens or closes) you get what im saying?
 
  • Kill Trees
    • Events
      • Time - Every 0.10 seconds of game time
    • Conditions
      • (MrRobot is alive) Equal to True
    • Actions
      • Set MrRobotPosition = (Position of MrRobot)
      • Destructible - Pick every destructible within 256.00 of MrRobotPosition and do (Actions)
        • Loop - Actions
          • Destructible - Kill (Picked destructible)
      • Custom script: call RemoveLocation(udg_MrRobotPosition)
Before all this Set MrRobot = *unit you want to kill trees*
there is no ability casting, nor attacking, trees are just gonna fall down :thumbs_up:
 
Level 2
Joined
Jan 14, 2007
Messages
20
Change the loop to something more like this
Code:
    Loop - Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Destructible-type of (Picked destructible)) Equal to Summer Tree Wall
            Then - Actions
                Destructible - Kill (Picked destructible)
            Else - Actions

If you dont add the if then it destroys all destructibles.
 
Status
Not open for further replies.
Top