• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

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.
 
Level 9
Joined
Apr 23, 2011
Messages
527
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:
Level 3
Joined
Oct 2, 2013
Messages
27
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.
 

EdgeOfChaos

E

EdgeOfChaos

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.
 
Level 3
Joined
Oct 2, 2013
Messages
27
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?
 
Level 3
Joined
Oct 2, 2013
Messages
27

Attachments

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