• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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