• 🏆 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!
  • It's time for the first HD Modeling Contest of 2024. Join the theme discussion for Hive's HD Modeling Contest #6! Click here to post your idea!

[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