Random Race

mr_fj

New Member
Reaction score
10
Why wont this work?

Trigger:
  • Computers
    • Events
      • Time - Elapsed game time is 0.20 seconds
    • Conditions
    • Actions
      • Player Group - Pick every player in (All players matching ((((Triggering player) slot status) Equal to Is playing) and (((Triggering player) controller) Equal to Computer))) and do (Actions)
        • Loop - Actions
          • Set Random = (Random integer number between 1 and 4)
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • Random Equal to 1
            • Then - Actions
              • Unit - Create 1 Town Hall for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
              • Unit - Create 5 Peasant for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
            • Else - Actions
              • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                • If - Conditions
                  • Random Equal to 2
                • Then - Actions
                  • Unit - Create 1 Great Hall for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                  • Unit - Create 5 Peon for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                • Else - Actions
                  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                    • If - Conditions
                      • Random Equal to 3
                    • Then - Actions
                      • Unit - Create 1 Tree of Life for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                      • Unit - Create 5 Wisp for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                    • Else - Actions
                      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
                        • If - Conditions
                          • Random Equal to 4
                        • Then - Actions
                          • Unit - Create 1 Necropolis for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                          • Unit - Create 3 Acolyte for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                          • Unit - Create 1 Ghoul for (Triggering player) at ((Triggering player) start location) facing Default building facing degrees
                        • Else - Actions
 

WolfieeifloW

WEHZ Helper
Reaction score
372
"Triggering player" should be "Matching player" in the group line.

And in the loop, "Triggering player" should be "Picked player".

EDIT: Lol Defi4nc3.
 

Defi4nc3

Developer of DORPG
Reaction score
20
Your Player Group needs to have Triggering Player turned into Matching Player...

and your Actions, need to be Picked Player instead of Triggering Player...
 

mr_fj

New Member
Reaction score
10
Would this work for more than one computer at the same time? And how could i turn nearest gold mine into a Haunted Goldmine / Entangled Goldmine? I mean, nearest to the player start location.

Okay, does anyone know why the Default Melee AI only gathers ressources in the map i am using this trigger in? Could it be because the AI is telling them to act like the race that was chosen in the create game menu, but the triggers made them another race?

Also, They first Hero you build cost money??? Why?
 

jig7c

Stop reading me...-statement
Reaction score
123
just on a side note mr fj, don't double post... edit your post
 

WolfieeifloW

WEHZ Helper
Reaction score
372
On a side note jig7c;
Don't post a useless post just to tell someone else that they're breaking a rule :p .

On an on-topic note;
I think the AI play as the race chosen in the game lobby.
 
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