• 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] [GUI] - Need some advanced spell help

Status
Not open for further replies.
Level 5
Joined
Jun 25, 2008
Messages
118
Basically the spell im making uses a dummy unit as a projectile with a repeating move (instantly) action, it is easy enough to kill it on impact with a unit but i have no idea as to how to kill it on impact with a doodad or destructible, eg. a tree.
atm i have an action that counts all enemy alive units within range of the dummy every time it moves, if the number of units is greater than 0, the dummy is killed, but this cannot be done with doodads/destructibles unfortunately and i cannot find any way around this myself, help would be ever so much appreciated if anyone knows how! :gg:

i know this would be possible if i learnt JASS, but im so deep in GUI that i just get totally confused when trying to learn it :cry:
 
Level 8
Joined
Jul 22, 2008
Messages
331
Wait, what is your question?
You want to kill destructible in an area or to kill units with destructible?
You have Actions:

  • Destructible - Create
  • Destructible group - Pick every Destr...
 
Level 5
Joined
Jun 25, 2008
Messages
118
ah sorry, im just being stupid and not explaining it well enough

i need a condition that checks whether there are any destructibles within a certain range of the dummy unit, for a if/then/else action

wow that was short, should of written that first time :grin:
 
Level 8
Joined
Jul 22, 2008
Messages
331
U do not need a condition.
just use action:
  • Destructible - pick every destructible in range
    • Destructible - Kill (Picked Destrutible)
If there are no trees it will kill nothing and if there are trees it will kill them...
BTW, You are not stupid (I hope) :)...
 
Level 5
Joined
Jun 25, 2008
Messages
118
i hadn't thought of that and it does come in handy for one of the spells i wanted to make for my map so thankyou (+rep :grin:), but the problem im having with this current spell is that i don't want it to destroy nearby trees, i want the dummy unit to die when it collides with a tree ^^
so i need something which can check if there are trees close by so it knows whether to kill the dummy unit or not

EDIT: Incase anyone comes onto this thread, np now guys, although i didnt find a way to do exactly this, i've actually managed to learn JASS :O xD in like one evening Oo.. although i only know basics, and im all good now, thanks for the time you put into helping RunBa ^^
 
Last edited:
Status
Not open for further replies.
Top