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

Status
Not open for further replies.
Level 5
Joined
Aug 5, 2010
Messages
114
I'm making creeps waves and I'm doing it by kill counting.
I made kill counting
Variable :
killcount Real

And Trigger:
  • add 1
    • Events
      • Unit - A unit owned by Player 12 (Brown) Dies
      • Unit - A unit owned by Player 12 (Brown) Changes owner
    • Conditions
    • Actions
      • Set killcount = (killcount + 1.00)
1srt waves is OK. It starts when all players are ready then it spawns Creeps1 (3xNumber Of Active Players) (i made it by creating frogs(1frog 1 active player)

Then i need trigger that starts next wave when killcount "gets" needed kill count:

killcount Become Equal to (3 x number of active players)

IT DOESN'T WORK..I have tried anything (variables,units number(that is equal to active players number), units hp, mana)
Nothing worked. Then I have made 11fake and turned off triggers and 1 trigger to turn on one of those triggers. (ex: 2 players trigger 2 turns on) (to set player number)
It works
But for every round i need to make + x11 triggers .... so 12 waves x11 and i get 140~ stupid triggers. And That's totally suck. NEED HELP to use active players count in event.
 
Level 11
Joined
Aug 6, 2009
Messages
697
Try
  • Events
    • Game - killcount becomes Equal to (3.00 x (Real((Number of players in Player Group - Player 1 (Red)))))
Just change the player group - player 1 red to your player group.
If this doesn't work also try. . . .
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • killcount Equal to (3.00 x (Real((Number of players in (Player group(PlayerGroup))))))
      • Then - Actions
      • Else - Actions
 
Level 5
Joined
Aug 5, 2010
Messages
114
Try
  • Events
    • Game - killcount becomes Equal to (3.00 x (Real((Number of players in Player Group - Player 1 (Red)))))
Just change the player group - player 1 red to your player group.
If this doesn't work also try. . . .
  • Actions
    • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
      • If - Conditions
        • killcount Equal to (3.00 x (Real((Number of players in (Player group(PlayerGroup))))))
      • Then - Actions
      • Else - Actions

Event Seems to work :) big thanks... but why event don't work when using something like number of living units owned by player x something ? ? I tested it counts well but event doesn't respond :slp:
 
Level 10
Joined
Jan 24, 2009
Messages
606
You could use a periodic time event, which checks if the kill count = to what you want to have it, then tell the trigger to make the wave trigger run, you can also add a variable called level which should be an integer, and also an init trigger that sets all the units types into an array, making then do Unit - create (numbers) of UnitType[level] at (point) facing (angle)
 
Status
Not open for further replies.
Top