• 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] Don't want Random

Status
Not open for further replies.
Level 7
Joined
Apr 15, 2006
Messages
91
I'm having problems with a Integer Comparison where it is
(Count structures controlled by(Random player from(All enemies of (Random player from (Allies of Player (Red))))) (Include incomplete structures)) equal to 0

I don't want random player I want all of the trigger to be (All enemies of (Allies of Player (Red)) but random is the only option they give me to say all enemies of allies of a certain player can anyone help me.
 
Level 17
Joined
Jun 12, 2007
Messages
1,261
I'm having problems with a Integer Comparison where it is
(Count structures controlled by(Random player from(All enemies of (Random player from (Allies of Player (Red))))) (Include incomplete structures)) equal to 0

I don't want random player I want all of the trigger to be (All enemies of (Allies of Player (Red)) but random is the only option they give me to say all enemies of allies of a certain player can anyone help me.

Let me see. I'll edit in a sec.

EDIT: I could not find it either, in case nobody else can find it you can always ste it to a variable and count it.
Like this:

  • A
    • Events
    • Conditions
    • Actions
      • Set Buildings = (Count structures controlled by Player 1 (Red) (Include incomplete structures)))
      • Set Buildings = (Buildings + (Count structures controlled by Player 2 (Blue) (Include incomplete structures)))
      • Set Buildings = (Buildings + (Count structures controlled by Player 3 (Teal) (Include incomplete structures)))
      • Set Buildings = (Buildings + (Count structures controlled by Player 4 (Purple) (Include incomplete structures)))
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • Buildings Equal to 0
        • Then - Actions
          • -------- <Your Actions> --------
        • Else - Actions
 
Level 21
Joined
Aug 21, 2005
Messages
3,699
But he's trying to convert* a player group to a player.

I'm just going to make an assumption: all "enemies of allies" of red are "enemies of red"... That sounds logical, doesn't it (my friend's enemy is also my enemy?)? So if that's the case, you could just enter "All enemies of Player 1 (Red)"...
 
Last edited:
Level 17
Joined
Jun 12, 2007
Messages
1,261
But he's trying to concert a player group to a player.

I'm just going to make an assumption: all "enemies of allies" of red are "enemies of red"... That sounds logical, doesn't it (my friend's enemy is also my enemy?)? So if that's the case, you could just enter "All enemies of Player 1 (Red)"...

Uhm, count of buildings does not have that function as far as I know. :p
 
make it with a force

set playergroup = all enemies of player blabla (u only need one of the allygroup)
pick every player in playergroup and d actions
loop - actions
set countstructures = count structures controlled by picked player
if, then, else multiple conditions multiple actions
if - conditions
countstructures equal to 0
then - actions
<ur actions>
else actions
<leave this free or whatever u want>

might be short but hope it helps
 
Level 7
Joined
Apr 15, 2006
Messages
91
Thanks Palaslayer I think i'll try your trigger. Since there is confusion what I'm trying to do in this trigger is saying the enemies of my allies structures are equal to 0. The reason for this is because I have a ally and unally system that would conflict with the victory/defeat function.
 
Status
Not open for further replies.
Top