• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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