Set difficulty based on how many players there are

Status
Not open for further replies.
Level 2
Joined
Aug 16, 2015
Messages
9
I have found some threads about this, but i dont understand them

I want to set its difficulty based on how many human players there are

1 player = 100%
2 player = 150%
3 player = 200%
.
.
.
.
.
and so on
 
Level 11
Joined
Jan 23, 2015
Messages
788
  • SetDifficulty
    • Events
      • Map initialization
    • Conditions
    • Actions
      • Set CountHumans = 0.00
      • Set Difficulty = 50.00
      • Player Group - Pick every player in (All players) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Race of (Picked player)) Equal to Human
            • Then - Actions
              • Set CountHumans = (CountHumans + 1.00)
              • Set Difficulty = (Difficulty + (50.00 x CountHumans))
            • Else - Actions
  • [/hidden]
Is this what you want to do?
 
Level 2
Joined
Aug 16, 2015
Messages
9
Sorry I was rushing at posting it a while ago.

By difficulty, I meant handicap. (But I can understand how the code above works)
By human, I meant non-AI players
 
Status
Not open for further replies.
Top