• 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.

[Solved] Calling up AI players while ignoring users

Status
Not open for further replies.
Level 3
Joined
Oct 27, 2016
Messages
34
I am trying to call up a "computer" player, as distinct from a "user" player

Unfortunately, it seems that this distinction just....doesn't exist, and the trigger completely ignores AI players as they were users

I have tried changing the players to "computer" in the Player Properties area, and even that doesn't help.

I'll share my trigger with you here:


  • Player Group - Pick every player in (All players) and do (Actions)
    • Loop - Actions
      • Unit - Create 1 Race Picker for (Picked player) at ((Picked player) start location) facing Default building facing degrees
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Owner of (Last created unit)) controller) Equal to User
        • Then - Actions
          • Do nothing
        • Else - Actions
          • Trigger - Run Random <gen> (ignoring conditions)
For those asking, the "Random" trigger itself works like a charm for the player, so I'm just sort of....wondering why the computer players are ignoring this trigger.

I've also tried changing the condition to call for the controller of the picked player, rather than the owner of last created unit.

I've also tried flipping the Then/Else, but that didn't work either. It almost appears as if the "controller" category doesn't actually distinguish anything, but I know I've used it before, so what the hell?

EDIT: I skipped creating the Race Picker unit entirely and just automatically created starting units, which seemed to work. Does anyone know why?


EDIT: I seem to have found the solution, and it was painfully obvious. I used the player-specific starting units action and it worked fine...

Goodness gracious me....
 
Last edited:
Status
Not open for further replies.
Top