• 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] 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,650
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