• 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 Problem

Status
Not open for further replies.
Level 6
Joined
May 9, 2011
Messages
228
guys theres a problem w/ the trigger can you figure it out what is the problem w/ this
  • init
  • Events
    • Time - Elapsed game time is 0.00 seconds
  • Conditions
  • Actions
    • Countdown Timer - Start timer as a One-shot timer that will expire in 20.00 seconds
    • Countdown Timer - Create a timer window for (Last started timer) with title Prepare for Battle
    • Trigger - Turn on periodic <gen>
  • periodic
  • Events
    • Time - Elapsed game time is 20.00 seconds
  • Conditions
    • chk Equal to False
  • Actions
    • Unit - Create 5 (Random level 2 creep unit-type) for Player 12 (Brown) at (Center of Region 000 <gen>) facing Default building facing degrees
    • Unit Group - Add (Last created unit) to group
  • timer
  • Events
    • Time - timer expires
  • Conditions
  • Actions
    • Set chk = True
    • Countdown Timer - Destroy (Last created timer window)
  • unit dies
  • Events
    • Unit - A unit Dies
  • Conditions
  • Actions
    • Unit Group - Remove (Triggering unit) from group
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • (group is empty) Equal to True
      • Then - Actions
        • Set chk = False
        • Countdown Timer - Start timer as a One-shot timer that will expire in 20.00 seconds
        • Countdown Timer - Create a timer window for (Last started timer) with title spawns
      • Else - Actions
i try to test this trigger
when player 1 kills one creep the timers starts to make an error
 

Attachments

  • SpawnTimer.w3x
    17.5 KB · Views: 44
Level 5
Joined
Sep 1, 2010
Messages
168
Check this
Should answer half of your questions.Doing some stuff yourself (practicing), should bring you much further than the 100th request for some simple stuff.. please don't misunderstand me, I'm not trying to flame or troll you, but since you're going to need a lot of triggers when creating a defense map, you'll sooner or later need to learn triggering yourself and the sooner you start, the better.
And believe me, I'm working a hero and a tower defense myself, the more I try to do things myself, the more interesting and appealing the spells - and even the ideas to them! - become.
 
Status
Not open for further replies.
Top