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

Hide Doodad(s) Trigger

Status
Not open for further replies.
Level 7
Joined
Jun 27, 2014
Messages
227
I was wondering if it's possible to make a trigger where when an ability is cast, for example "Flame Strike" that it hides a doodad type from the game in this way :

Event - Ability is being cast
If Condition - ability being cast equal to flame strike
Then - Hide doodad(s) / Destructible(s) of type Environment in AoE of ability center
Else - Do nothing

I don't know how to make it correctly or if it's possible via GUI.... I'm sort of planning to use this for a "plow" mechanic. I already have the change terrain mechanic laid out - now if this is made it would pretty much help me not have weeds where the wheat is.
 
Level 30
Joined
Feb 18, 2014
Messages
3,623
You can try something like that :

  • FlameStrike
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to FlamesStrike
    • Actions
      • Destructible - Pick every destructible within 256.00 of (Target point of ability being cast) and do (Actions)
        • Loop - Actions
          • Destructible - Hide (Picked destructible)
 
Level 7
Joined
Jun 27, 2014
Messages
227
You can try something like that :

  • FlameStrike
    • Events
      • Unit - A unit Starts the effect of an ability
    • Conditions
      • (Ability being cast) Equal to FlamesStrike
    • Actions
      • Destructible - Pick every destructible within 256.00 of (Target point of ability being cast) and do (Actions)
        • Loop - Actions
          • Destructible - Hide (Picked destructible)

I could use that, however what I wanted to hide was a doodad. This was helpful though as it gave me an idea. I made a trigger for doodads out of it and I'd like to share it. Essentially I dislike how people make farm plowing that does not take care of doodads. Here are my results on finding a bonus to that system.

Also - I ain't sure how to post triggers like you, all I can do is give out a map with it inside. Should come in handy, all in all +rep.
 

Attachments

  • Plowing Addon [Hide Doodads].w3x
    6.9 KB · Views: 35
Level 14
Joined
Nov 17, 2010
Messages
1,266
You can play animations for doodads. Every doodad has a hide and show animation.

Animation - Play Animation For Doodads In Circle

Play the hide animation for all doodads of doodad type within range of point

Of course this means you would have to do this for each type of doodad you want to hide.
 
Status
Not open for further replies.
Top