Initially Off 'Every 1 Second' Event Fail

Aaronx

New Member
Reaction score
6
I'm trying to make it so that when a region is empty of a player's units, it turns another trigger on. Here's the trigger for my spawn trigger for a part of my map:

Code:
Weak
    Events
        Unit - A unit enters Spawn Weak <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
        (Hero level of (Entering unit)) Greater than or equal to 16
    Actions
        Trigger - Turn off (This trigger)
        Trigger - Turn off Leave Arena <gen>
        Trigger - Turn off Easy <gen>
        Trigger - Turn off Medium <gen>
        Trigger - Turn off Hard <gen>
        Trigger - Turn off Brutal <gen>
        Unit - Create 2 Kobold Combatant for Player 11 (Dark Green) at (Center of Stadium <gen>) facing Default building facing degrees
        Wait 0.60 seconds
        Destructible - Open Colisuseum Gate (Horizontal) 1544 <gen>
        Wait 0.10 seconds
        Unit Group - Order (Last created unit group) to Right-Click (Random point in Stadium Order <gen>)
        Wait 2.10 seconds
        Destructible - Close Colisuseum Gate (Horizontal) 1544 <gen>
        Wait 15.00 seconds
        Trigger - Turn on Weak <gen>
        Trigger - Turn on Easy <gen>
        Trigger - Turn on Medium <gen>
        Trigger - Turn on Hard <gen>
        Trigger - Turn on Brutal <gen>
        Trigger - Turn on LeaveArena2 <gen>

Then here's the trigger that's supposed to turn another one on:

Code:
LeaveArena2
    Events
        Time - Every 1.25 seconds of game time
    Conditions
    Actions
        If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            If - Conditions
                (Number of units in (Units in Coliseum Arena <gen> owned by Player 11 (Dark Green))) Equal to 0
            Then - Actions
                Trigger - Turn off (This trigger)
                Trigger - Turn on Leave Arena <gen>
            Else - Actions
                Do nothing

I'm assuming it has to do with the second one. Any ideas how to fix?
 

canons200

New Member
Reaction score
50
Trigger - Turn off (This trigger)
put this last, if this run first, it will straight turn off this trigger and skip the remaining action
 

Aaronx

New Member
Reaction score
6
Really? Is that only for if then else? Because that's how you do it with anything else...

and I tried that anyway, guess I should have put that in there, figured it was obvious.
 

canons200

New Member
Reaction score
50
Trigger - Turn off (This trigger)
must put it last if not the minute it run it turn off your trigger, the next action Trigger - Turn off Leave Arena <gen> wont run, because the trigger already turn off
 

Aaronx

New Member
Reaction score
6
I tried switching them around again, to no avail.

I also just tried using a Wait for Condition method, and that didn't work either.

Anyone else? Without out that trigger working, you can't leave the Region =O
 

Shura

New Member
Reaction score
45
For the second trigger, can't you put the condition in the condition part of the trigger, instead of having to use an if/then/else? Also, there is a boolean comparison to check if a unit group is empty. I don't think either of these would be the problem, and other that that it should work fine. Maybe you could describe exactly what the problem your having is.
 

canons200

New Member
Reaction score
50
i think you better check whether your trigger is running or not, just simple add an action that show message to all player, if that action do appear, that mean the action after the show message is wrongly set, if that message never appear, mean your trigger from the beginning already wrongly set.
 

Aaronx

New Member
Reaction score
6
Yeah I was able to figure it out. Here's the working triggers, for anybody with a similiar problem.

Code:
Medium
    Events
        Unit - A unit enters Hard <gen>
    Conditions
        ((Entering unit) is A Hero) Equal to True
        (Hero level of (Entering unit)) Greater than or equal to 24
    Actions
        Trigger - Turn off (This trigger)
        Trigger - Turn off Leave Arena <gen>
        Trigger - Turn off Weak <gen>
        Trigger - Turn off Easy <gen>
        Trigger - Turn off Hard <gen>
        Trigger - Turn off Brutal <gen>
        Unit - Create 1 Arachnathid Grunt for Player 11 (Dark Green) at (Center of Stadium <gen>) facing Default building facing degrees
        Wait 0.60 seconds
        Destructible - Open Coliseum Gate (Horizontal) 1544 <gen>
        Wait 0.10 seconds
        Unit - Order (Last created unit) to Attack-Move To (Random point in Stadium Order <gen>)
        Wait 2.35 seconds
        Destructible - Close Coliseum Gate (Horizontal) 1544 <gen>
        Wait 15.00 seconds
        Trigger - Turn on Weak <gen>
        Trigger - Turn on Easy <gen>
        Trigger - Turn on Medium <gen>
        Trigger - Turn on Hard <gen>
        Trigger - Turn on Brutal <gen>
        Trigger - Turn on LeaveArena2 <gen>

and then
Code:
LeaveArena2
    Events
        Time - Every 1.40 seconds of game time
    Conditions
        (All units of (Units in Coliseum Arena <gen> owned by Player 11 (Dark Green)) are dead) Equal to True
    Actions
        Trigger - Turn off (This trigger)
        Trigger - Turn on Leave Arena <gen>
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top