10 kills -> win

ilken

New Member
Reaction score
0
For me it says
Else - Actions
Game - Victory Player 1 (Show dialogs, Show scores)

I want it to say

Else - Actions
Game - Victory WestPlayers (Show dialogs, Show scores)
 

Kayoss666

Member
Reaction score
7
oh okay lol sorry i like to over think for you it would be Game - Victory WestHeroes(Show dialogs, Show scores)
and just click player 1 and select the drop down arrow next to edit variables and then select WestHeroes.
 

Kayoss666

Member
Reaction score
7
okay sorry do it like this:
Trigger:
  • Player Group - Pick every player in (WestHeroes) and do (Actions)
    • Loop - Actions
      • Game - Victory (Picked player) (Show dialogs, Show scores)
 

Kayoss666

Member
Reaction score
7
make the conditions on the sell unit triggers to incldue
Trigger:
  • Or - Any (Conditions) are true
    • Conditions
      • put your conditions here


put your conditions inside there
 

OMGOMGOMG

UMBWGMG (Unidentified Human Being.)
Reaction score
28
Click on new Condition
Push: O
Scroll down to Or - Any (Conditions) are true

Three easy steps.
 

Solu9

You can change this now in User CP.
Reaction score
216
Im not exactly sure where you are at in completing your trigger. However here is my go. Should work.

Trigger:
  • Set Teams
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Player Group - Pick every player in (All allies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Set WestTeam = (All allies of Player 1 (Red))
      • Player Group - Pick every player in (All enemies of Player 1 (Red)) and do (Actions)
        • Loop - Actions
          • Set EastTeam = (All enemies of Player 1 (Red))


Trigger:
  • West Killcount
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to True
          • ((Owner of (Dying unit)) is an enemy of Player 1 (Red)) Equal to True
    • Actions
      • Set WestKills = (WestKills + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • WestKills Greater than or equal to 10
        • Then - Actions
          • Player Group - Pick every player in WestTeam and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
        • Else - Actions


Trigger:
  • East Killcount
    • Events
      • Unit - A unit Dies
    • Conditions
      • And - All (Conditions) are true
        • Conditions
          • ((Owner of (Killing unit)) is an enemy of Player 1 (Red)) Equal to True
          • ((Owner of (Dying unit)) is an ally of Player 1 (Red)) Equal to True
    • Actions
      • Set EastKills = (EastKills + 1)
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • EastKills Greater than or equal to 10
        • Then - Actions
          • Player Group - Pick every player in EastTeam and do (Actions)
            • Loop - Actions
              • Game - Victory (Picked player) (Show dialogs, Show scores)
        • Else - Actions


Shouldn't it be just that easy?

Variables used:
WestTeam: Player Group (no array)
EastTeam: Player Group (no array)
WestKills: Integer (no array)
EastKills: Integer (no array)
 

ilken

New Member
Reaction score
0
Which comparison is this?

((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to True
 

Solu9

You can change this now in User CP.
Reaction score
216
Which comparison is this?

((Owner of (Killing unit)) is an ally of Player 1 (Red)) Equal to True

It's a Boolean :)

Edit: Remember if you need to killed unit to be a hero just add that condition.
 

Kayoss666

Member
Reaction score
7
Variables used:
WestKills: Integer (no array)
EastKills: Integer (no array)

you can use two variables i am just use to using a lot of variables so i cut them down when i can so i use an array so it was only one.
 

Solu9

You can change this now in User CP.
Reaction score
216
I guess it's personal preferences really. I find this way more manageable.
 

ilken

New Member
Reaction score
0
I forgot to thank you before, so i'll do it know. Thank you! It works perfectly =)
 
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