Trigger help..

Jooze.

New Member
Reaction score
0
Ok, in my map theres a dungeon where you must kill 2 tuskarr guardians to advance to the next stage. At the next stage, you hav to kill an additional 3 tuskarr guardians to advance again. Ive been messing with this trigger for a while but right now it takes 3 tuskarrs to move to the advance the first time then after that it just keeps moving my hero to (Center of IceLairSpawn2 <gen>)). Help? :eek:

Untitled
Events
Unit - A unit Dies
Conditions
(Unit-type of (Dying unit)) Equal to Tuskarr Guardian
Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
TuskarrGuardCount Less than 2
Then - Actions
Set TuskarrGuardCount = (TuskarrGuardCount + 1)
Else - Actions
Unit Group - Pick every unit in DungeonFighters[1] and do (Unit - Move (Picked unit) instantly to (Center of IceLairSpawn2 <gen>))
Set TuskarrGuardCount = 3
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(TuskarrGuardCount Greater than or equal to 3) or (TuskarrGuardCount Less than 6)
Then - Actions
Set TuskarrGuardCount = (TuskarrGuardCount + 1)
Else - Actions
Set TuskarrGuardCount = 0
Unit Group - Pick every unit in DungeonFighters[1] and do (Actions)
Loop - Actions
Unit - Move (Picked unit) instantly to (Center of Region 000 <gen>)
 

NeuroToxin

New Member
Reaction score
46
Why not just reset the tuskarr guard count to 0 afterwards, and make a boolean, when they kill the first two, set the boolean to true, if its true, skip the first if.
 

Jooze.

New Member
Reaction score
0
You mean where it says "Set TuskarrGuardCount = 3"? And how would i make a boolean like that?
 

0WN3D

New Member
Reaction score
15
He mean to make 2 variables.... 1 is integer and another boolean....
Then each time a tuskar is kill set tuskarcount = tusckarcount + 1
And every few second check if tuskarcount is more than 2 then if it is, set the boolean to true
Then after that, each time a tuskar dies, check if the boolean is true and tuskar count = 3
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top