• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

[Trigger] Spwaning Problem

Status
Not open for further replies.
Level 3
Joined
May 10, 2007
Messages
39
Hi.
I Need Help I'm Making A Map And I Want To spawn Trees In A Region
Can I Do That?
If I Cant Can You Tell Me How I Can Make Trees Grow Back... Like Campaign
When Cenarius MakesThe Trees Grow Back In The Orc Campaign.

Thanks In Advance. ^^ :)

:p i forgot to ask one more thing
how can i make that when i destroy a building or drop it to a low level of hp i take control of building?
 
Last edited by a moderator:
Level 3
Joined
Apr 7, 2007
Messages
48
Well, let me see how. First thing your going to need is a region to spawn the trees in and then you can do something like this:

  • For each (Integer A) from 1 to Number, do (Actions)
    • Loop - Actions
      • Destructible - Create a Summer Tree Wall at (Random point in Your_Region) facing (Random angle) with scale 1.00 and variation 0
For the Building it would go something like this:
  • Building Convert
    • Events
      • Unit - A unit Dies
    • Conditions
      • ((Triggering unit) is A structure) Equal to True
    • Actions
      • Set Unit_Loc = (Position of (Triggering unit))
      • Unit - Create 1 (Unit-type of (Triggering unit)) for (Owner of (Killing unit)) at Unit_Loc facing Default building facing degrees
      • Custom script: call RemoveLocation( udg_Unit_Loc )
If you want that to be a specific building or building type, edit the Events and Conditions accordingly.

Hope this helps.
 
Level 25
Joined
May 11, 2007
Messages
4,651
Or you do for 25% of life = change owner.


  • Events: A unit of player 1, 2, 3 , 4, 5, 6, 7, 8, 9, 10, 11, 12 is attacked...
  • Conditions
  • Initier: Life of Attacked unit equal to or less than 25%.
  • Bolean: Unit is a structure: Equal to True.
  • Actions
  • Unit - Change ownership of (Attacked unit) to owner of (Attacking unit)
  • Unit - Set life of (attacked unit) to 100%.
 
Status
Not open for further replies.
Top