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

Forests growing

Status
Not open for further replies.
Level 1
Joined
Apr 8, 2009
Messages
1
Greetings Everyone :)

I have a request for the trigger experts! I'm currently working on a unusally melee map. The overall goal is the same; build a base and eliminate the others, but i've increased the gold in the gold mines along with health points in the trees, but the trees are still downable.
Therefore I made a simple trigger that will spawn new trees randomly all over the map, but it kinda turned out in the wrong way (trees spawning inside buildings...).
So now I am looking for a trigger that makes forests growing. Like insteed of trees poping up right on the road, then the new trees will only spawn next to the others trees in the map. I think, it would be more realistic in that way, hope you guys have some sort of idea, what i'm talking about :xxd:

Thank you!
 
Level 5
Joined
Nov 2, 2008
Messages
46
  • Add Gold to Mines
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • Destructible - Pick every destructible in (Playable map area) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Random integer number between 1 and 20) Equal to 1
              • (Destructible-type of (Picked destructible)) Equal to YourDestrutibleType
            • Then - Actions
              • Set temp_Loc = (Position of (Picked destructible))
              • Destructible - Create a YourDestructibleType at (temp_Loc offset by (Random real number between 50.00 and 100.00) towards (Random real number between 0.00 and 360.00) degrees) facing (Random angle) with scale (Random real number between 0.80 and 1.20) and variation 0
              • Custom script: call RemoveLocation(udg_temp_Loc)
            • Else - Actions
This trigger creates a new tree every 30 seconds at all destructibles of the type YourTreeType with a 5% chance.
 
Status
Not open for further replies.
Top