• 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] Need a spawning trigger

Status
Not open for further replies.
Level 2
Joined
Jan 16, 2012
Messages
9
Hey guys im making a new map based on zombie defence but different than any other made, i need a trigger which lets units spawn at area A, but if that unit (which has spawned) kills any unit, another units spawns with the next wave.
if that makes sence :D
thanks for any help <:)
 
Level 17
Joined
Feb 11, 2011
Messages
1,860
Here you go!

  • Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Zombie_Count = 30
  • Spawn
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to Zombie_Count, do (Actions)
        • Loop - Actions
          • Set Temp_Point = (Random point in Region 000 <gen>)
          • Unit - Create 1 Zombie for Player 12 (Brown) at Temp_Point facing Default building facing degrees
          • Custom script: call RemoveLocation(udg_Temp_Point)
  • Zombie Kills
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Killing unit)) Equal to Zombie
    • Actions
      • Set Zombie_Count = (Zombie_Count + 1)
 
Level 2
Joined
Jan 16, 2012
Messages
9
ok just so i have this right, so i understand
Part A:i have no idea?
Part B is where the *zombie* spawns
Part C i just have to change the condition of zombie to watever the unit is he has to kill?
which means the action is the zombie count is added to the spawn so that 2 zombies spawn for player brown?
 
Level 2
Joined
Jan 16, 2012
Messages
9
Here you go!

  • Setup
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set Zombie_Count = 30
  • Spawn
    • Events
      • Time - Every 30.00 seconds of game time
    • Conditions
    • Actions
      • For each (Integer A) from 1 to Zombie_Count, do (Actions)
        • Loop - Actions
          • Set Temp_Point = (Random point in Region 000 <gen>)
          • Unit - Create 1 Zombie for Player 12 (Brown) at Temp_Point facing Default building facing degrees
          • Custom script: call RemoveLocation(udg_Temp_Point)
  • Zombie Kills
    • Events
      • Unit - A unit Dies
    • Conditions
      • (Unit-type of (Killing unit)) Equal to Zombie
    • Actions
      • Set Zombie_Count = (Zombie_Count + 1)

hey mate can you show me how you did the variable??
also in the set up did you go
actions
set variable = 30
because i cant put 30 it wants a unit type?
 
Status
Not open for further replies.
Top