• 🏆 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] 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