• 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] or [JASS] Tree Replacement

Status
Not open for further replies.
Level 2
Joined
Jan 13, 2009
Messages
12
Haiya,
I know there's no uhhh, 'Destructible - Replace' trigger, so I tried removing all the trees then spawning another type of tree in their place.
It didn't work.

  • Trees Replace
    • Events
      • Player - Player 1 (Red) types a chat message containing -snow as An exact match
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Playable map area) and do (Actions)
        • Loop - Actions
          • Destructible - Remove (Picked destructible)
          • Destructible - Create a Winter Tree Wall at (Position of (Picked destructible)) facing (Random angle) with scale 1.00 and variation (Random integer number between 1 and 3)
I thought maybe isn't working because the 'Picked Destructible' is gone, so no trees can be made at those locations. Therefore, would I have to store them in a variable with an array? If so, how would that be done?

ps. If this can't be done in GUI, is there a JASS alternative?
 
Status
Not open for further replies.
Top