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

[General] is there a way to detect computer difficulty for computer player slot?

Status
Not open for further replies.
Level 12
Joined
Feb 22, 2010
Messages
1,115
  • Set TempPlayer = your Player here
  • Custom script: if GetAIDifficulty(udg_TempPlayer) == AI_DIFFICULTY_NEWBIE then
  • -------- Easy --------
  • Custom script: elseif GetAIDifficulty(udg_TempPlayer) == AI_DIFFICULTY_NORMAL then
  • -------- Normal --------
  • Custom script: elseif GetAIDifficulty(udg_TempPlayer) == AI_DIFFICULTY_INSANE then
  • -------- Insane --------
  • Custom script: endif
 
Level 12
Joined
Feb 22, 2010
Messages
1,115
can I go without putting the player in variable?

Yes you can do that without variable if you know what to put there.I mean if you know a little jass knowledge.Or just tell what you want to put there and someone will surely show you.
 
Status
Not open for further replies.
Top