Problem with minigame (6triggers)

morcius

New Member
Reaction score
1
Code:
ZombieDefRun
    Events
        Player - Player 1 (Red) types a chat message containing -go as An exact match
    Conditions
    Actions
        Trigger - Run ZombieDefINI <gen> (ignoring conditions)
        Trigger - Run ZombieDefTimer <gen> (ignoring conditions)
        Trigger - Turn on ZombieDefPath <gen>
        Trigger - Turn on ZombieDefEnd <gen>
        Trigger - Turn on ZergVictory <gen>
        Trigger - Turn on ZombieDefUnits <gen>
Code:
ZombieDefINI
    Events
    Conditions
    Actions
        Camera - Apply Camera 001 <gen> for Player 1 (Red) over 0.00 seconds
        Camera - Apply Camera 001 <gen> for Player 2 (Blue) over 0.00 seconds
        Camera - Apply Camera 001 <gen> for Player 3 (Teal) over 0.00 seconds
        Camera - Apply Camera 001 <gen> for Player 4 (Purple) over 0.00 seconds
        Player Group - Pick every player in (All players controlled by a User player) and do (Camera - Set (Picked player)'s camera CAMERA_FIELD_TARGET_DISTANCE to 1500.00 over 1.00 seconds)
        If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 1 Marine for Player 1 (Red) at (Random point in MarineRegion <gen>) facing Default building facing (270.0) degrees) else do (Do nothing)
        If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Create 1 Marine for Player 2 (Blue) at (Random point in MarineRegion <gen>) facing Default building facing (270.0) degrees) else do (Do nothing)
        If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Unit - Create 1 Marine for Player 3 (Teal) at (Random point in MarineRegion <gen>) facing Default building facing (270.0) degrees) else do (Do nothing)
        If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Create 1 Marine for Player 4 (Purple) at (Random point in MarineRegion <gen>) facing Default building facing (270.0) degrees) else do (Do nothing)
        Game - Display to (All players) the text: Survive the wave of...
Code:
ZombieDefTimer
    Events
    Conditions
    Actions
        Countdown Timer - Start Counter3 as a One-shot timer that will expire in 10.00 seconds
        Countdown Timer - Create a timer window for Counter3 with title Escape Unit in  
        Set TimerWindow = TimerWindow
        Trigger - Turn off (This trigger)
Code:
ZombieDefUnits
    Events
        Time - Every 2.60 seconds of game time
    Conditions
    Actions
        If ((Player 1 (Red) slot status) Equal to Is playing) then do (Unit - Create 2 Zombie for Player 12 (Brown) at (Random point in ZombieRegion <gen>) facing Default building facing (270.0) degrees) else do (Do nothing)
        If ((Player 2 (Blue) slot status) Equal to Is playing) then do (Unit - Create 2 Zombie for Player 12 (Brown) at (Random point in ZombieRegion <gen>) facing Default building facing (270.0) degrees) else do (Do nothing)
        If ((Player 3 (Teal) slot status) Equal to Is playing) then do (Unit - Create 2 Zombie for Player 12 (Brown) at (Random point in ZombieRegion <gen>) facing Default building facing (270.0) degrees) else do (Do nothing)
        If ((Player 4 (Purple) slot status) Equal to Is playing) then do (Unit - Create 2 Zombie for Player 12 (Brown) at (Random point in ZombieRegion <gen>) facing Default building facing (270.0) degrees) else do (Do nothing)
Code:
ZombieDefPath
    Events
        Unit - A unit enters ZombieRegion <gen>
    Conditions
        (Owner of (Entering unit)) Equal to Player 12 (Brown)
    Actions
        Unit - Order (Entering unit) to Attack-Move To (Center of MarineRegion <gen>)
Code:
ZombieDefEnd
    Events
        Unit - A unit owned by Player 1 (Red) Dies
        Unit - A unit owned by Player 2 (Blue) Dies
        Unit - A unit owned by Player 3 (Teal) Dies
        Unit - A unit owned by Player 4 (Purple) Dies
    Conditions
        (Unit-type of (Dying unit)) Equal to Marine
    Actions
        Trigger - Turn off ZombieDefUnits <gen>
        Wait 2.00 seconds
        Unit Group - Pick every unit in (Units in GunsMiniGameRegion <gen>) and do (Unit - Explode (Picked unit))
        Game - Display to (All players) the text: You have been eated...
        Wait 3.00 seconds
        Unit Group - Pick every unit in (Units in GunsMiniGameRegion <gen>) and do (Unit - Remove (Picked unit) from the game)
Code:
ZombieDefVictory
    Events
        Time - Counter3 expires
    Conditions
    Actions
        Trigger - Turn off ZombieDefUnits <gen>
        Unit Group - Pick every unit in (Units in GunsMiniGameRegion <gen> owned by Player 12 (Brown)) and do (Unit - Explode (Picked unit))
        Wait 1.00 seconds
        Game - Display to (All players) the text: You have surivived ...
        Special Effect - Create a special effect at (Center of MarinesCreate <gen>) using Abilities\Spells\NightElf\Blink\BlinkCaster.mdl
        Unit - Create 1 Space Fel Orc for Neutral Passive at (Center of MarineRegion <gen>) facing Default building facing (270.0) degrees
        Wait 4.00 seconds
        Game - Display to (All players) the text: Escape Comand : LET...
        Wait 3.00 seconds
        Special Effect - Create a special effect at (Center of MarinesCreate <gen>) using Abilities\Spells\Undead\ReplenishHealth\ReplenishHealthCaster.mdl
        Unit Group - Pick every unit in (Units in GunsMiniGameRegion <gen>) and do (Unit - Remove (Picked unit) from the game)
        Trigger - Turn off ZombieDefTimer <gen>
        Trigger - Turn off ZombieDefPath <gen>
        Trigger - Turn off ZombieDefINI <gen>
        Trigger - Turn off ZergEnd <gen>
        Trigger - Turn off ZombieDefRun <gen>
        Trigger - Turn off (This trigger)

As you can see this triggers works like one but when the "counter3" expires the "zombiedefunits" trigger wont turn off and other actions in "zombie def victory" vont happen can someone solve the problem please? Thanks in future.
 
S

SoCal_420

Guest
You Could Just Do the
Events
Player - Player 1 (Red) types a chat message containing -go as An exact match
Then All The Actions In one Trigger.
 

Choppa

www.warcraft-gamers.po.gs
Reaction score
59
I think it's because you have no event for some of your triggers...

ZombieDefINI
ZombieDefTimer


There's nothing telling "counter 3" to start, so how can it finish...
And because it doesn't finish it doesn't initiate ZombieDefVictory, and because of this it doesn't turn off ZombieDefUnits.
 

Siretu

Starcraft 2 Editor Moderator
Reaction score
293
Correct me if im wrong, but in the first trigger he actually runs the trigger that starts the timer. He doesn't turn it on, he runs it. That means that he triggers the actions without caring about the event. so he actually does start the counter. For the problem with all the triggers I dont really know. I had a fast look at it, I'll maybe take a look at it when I come home from school.
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top