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

[Trigger] where is the problem in checking computer difficulty?

Status
Not open for further replies.
hi, this is how they told me to check player difficulty, but when I try to save with newgen it results it error 'unexpected then'


  • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
    • If - Conditions
      • (Players[(Integer A)] controller) Equal to Computer
    • Then - Actions
      • Custom script: if GetAIDifficulty(udg_Players[GetForLoopIndexA()] == AI_DIFFICULTY_NEWBIE then
      • Player - Set name of Players[(Integer A)] to (Computer + ((String((Player number of Players[(Integer A)]))) + (Easy)))
      • Custom script: endif
      • Custom script: if GetAIDifficulty(udg_Players[GetForLoopIndexA()] == AI_DIFFICULTY_NORMAL then
      • Player - Set name of Players[(Integer A)] to (Computer + ((String((Player number of Players[(Integer A)]))) + (Normal)))
      • Custom script: endif
      • Custom script: if GetAIDifficulty(udg_Players[GetForLoopIndexA()] == AI_DIFFICULTY_INSANE then
      • Player - Set name of Players[(Integer A)] to (Computer + ((String((Player number of Players[(Integer A)]))) + (Insane)))
      • Custom script: endif
    • Else - Actions
 
Status
Not open for further replies.
Top