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

Detect Random Race

Status
Not open for further replies.
Level 3
Joined
Feb 24, 2016
Messages
38
i dont think there is a way to detect the 'random' race selector but i know you can make a condition for a trigger that is a "Race Comparison"

if race of player 1 is equal to Human/orc/undead/nightelf.

maybe there is but idk it :(
 
Level 13
Joined
Oct 12, 2016
Messages
769
That it is. In fact, it is a custom script:
  • Set Player = Player 1
  • Custom script: set udg_Boolean = IsPlayerRacePrefSet(udg_Player, RACE_PREF_RANDOM)
Where "Boolean" is a variable of your choice.
If Boolean is true, then the race is "random."
"Player" is a variable for any player you want.
 
Last edited:
Status
Not open for further replies.
Top