• 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.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Trigger Spawning

Status
Not open for further replies.
Level 3
Joined
Oct 2, 2013
Messages
27
Hi I am looking to spawn zombies within a certain region after someone types -Undead Enabled and I only want them to enable the Undead after a certain time limit say 300 seconds = 5 minutes and i was that time limit connected to another trigger and when that trigger is done I want them to be able to type the command and enable undead and i want it as a periodic event every 60 seconds = 1 minute. If you need help understanding what i just said i will edit this post and make it a little more understandable.
 
you probably want a trigger that sets off a timer.
  • timer
    • Events
      • Insert events here
    • Conditions
      • Insert conditions here
    • Actions
      • Insert actions here
      • Countdown Timer - Start timer as a One-shot timer that will expire in 300.00 seconds
      • Countdown Timer - Create a timer window for timer with title Time Left:
then make a trigger after the timer expires
  • enable spawn
    • Events
      • Time - timer expires
    • Conditions
    • Actions
      • Trigger - Turn on undead spawn <gen>
then make an initially off trigger for the command.
  • undead spawn
    • Events
      • Player - Player 1 (Red) types a chat message containing -Undead Enabled as An exact match
      • Player - Player 2 (Blue) types a chat message containing -Undead Enabled as An exact match
      • Player - Player 3 (Teal) types a chat message containing -Undead Enabled as An exact match
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on spawn loop <gen>
      • Game - Display to (All players) the text: Undead Enabled!
then make the trigger for the spawning (also initially off).
  • spawn loop
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 undead for player at (Center of region) facing Default building facing degrees
 
Last edited:
you probably want a trigger that sets off a timer.
  • timer
    • Events
      • Insert events here
    • Conditions
      • Insert conditions here
    • Actions
      • Insert actions here
      • Countdown Timer - Start timer as a One-shot timer that will expire in 300.00 seconds
      • Countdown Timer - Create a timer window for timer with title Time Left:
then make a trigger after the timer expires
  • enable spawn
    • Events
      • Time - timer expires
    • Conditions
    • Actions
      • Trigger - Turn on undead spawn <gen>
then make an initially off trigger for the command.
  • undead spawn
    • Events
      • Player - Player 1 (Red) types a chat message containing -Undead Enabled as An exact match
      • Player - Player 2 (Blue) types a chat message containing -Undead Enabled as An exact match
      • Player - Player 3 (Teal) types a chat message containing -Undead Enabled as An exact match
    • Conditions
    • Actions
      • Trigger - Turn off (This trigger)
      • Trigger - Turn on spawn loop <gen>
      • Game - Display to (All players) the text: Undead Enabled!
then make the trigger for the spawning (also initially off).
  • spawn loop
    • Events
      • Time - Every 60.00 seconds of game time
    • Conditions
    • Actions
      • Unit - Create 1 undead for player at (Center of region) facing Default building facing degrees

This did not work for me.
 
Oh God the grammar in that post... Anyways here it is:

  • Enable Zombies
    • Events
      • Time - Elapsed game time is 300.00 seconds
    • Conditions
    • Actions
      • Trigger - Turn on Command Used <gen>
  • Command Used
    • Events
      • Player - Player 1 (Red) types a chat message containing -undead as An exact match
      • Player - Player 2 (Blue) types a chat message containing -undead as An exact match
      • Player - Player 3 (Teal) types a chat message containing -undead as An exact match
      • Player - Player 4 (Purple) types a chat message containing -undead as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -undead as An exact match
      • Player - Player 6 (Orange) types a chat message containing -undead as An exact match
      • Player - Player 7 (Green) types a chat message containing -undead as An exact match
      • Player - Player 8 (Pink) types a chat message containing -undead as An exact match
      • Player - Player 9 (Gray) types a chat message containing -undead as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -undead as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -undead as An exact match
      • Player - Player 12 (Brown) types a chat message containing -undead as An exact match
    • Conditions
    • Actions
      • Countdown Timer - Start ZombieTimer as a Repeating timer that will expire in 60.00 seconds
      • Trigger - Turn off (This trigger)
  • Spawn Zombies
    • Events
      • Time - ZombieTimer expires
    • Conditions
    • Actions
      • Set TempPoint = (Center of YourRegion <gen>)
      • Unit - Create 3 Ghoul for Neutral Hostile at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_TempPoint)
"Command Used" needs to be initially off.
Obviously it will need configuration to meet your exact needs in the map but this is the idea.
 
Oh God the grammar in that post... Anyways here it is:

  • Enable Zombies
    • Events
      • Time - Elapsed game time is 300.00 seconds
    • Conditions
    • Actions
      • Trigger - Turn on Command Used <gen>
  • Command Used
    • Events
      • Player - Player 1 (Red) types a chat message containing -undead as An exact match
      • Player - Player 2 (Blue) types a chat message containing -undead as An exact match
      • Player - Player 3 (Teal) types a chat message containing -undead as An exact match
      • Player - Player 4 (Purple) types a chat message containing -undead as An exact match
      • Player - Player 5 (Yellow) types a chat message containing -undead as An exact match
      • Player - Player 6 (Orange) types a chat message containing -undead as An exact match
      • Player - Player 7 (Green) types a chat message containing -undead as An exact match
      • Player - Player 8 (Pink) types a chat message containing -undead as An exact match
      • Player - Player 9 (Gray) types a chat message containing -undead as An exact match
      • Player - Player 10 (Light Blue) types a chat message containing -undead as An exact match
      • Player - Player 11 (Dark Green) types a chat message containing -undead as An exact match
      • Player - Player 12 (Brown) types a chat message containing -undead as An exact match
    • Conditions
    • Actions
      • Countdown Timer - Start ZombieTimer as a Repeating timer that will expire in 60.00 seconds
      • Trigger - Turn off (This trigger)
  • Spawn Zombies
    • Events
      • Time - ZombieTimer expires
    • Conditions
    • Actions
      • Set TempPoint = (Center of YourRegion <gen>)
      • Unit - Create 3 Ghoul for Neutral Hostile at TempPoint facing Default building facing degrees
      • Custom script: call RemoveLocation(udg_TempPoint)
"Command Used" needs to be initially off.
Obviously it will need configuration to meet your exact needs in the map but this is the idea.

In your "call RemoveLocation(udg_Temppoint)" what does that do cause when I put it in it does not work, and gives me an error, and I cannot save what is it? Is it vital to have it, or do I not need it?
 

Attachments

  • Trigger Problem.png
    Trigger Problem.png
    6.8 KB · Views: 103
Status
Not open for further replies.
Back
Top