Aller au contenu

Photo

Difficulty level


  • Veuillez vous connecter pour répondre
4 réponses à ce sujet

#1
AmstradHero

AmstradHero
  • Members
  • 1 239 messages
Quick question:
Is there any easy way to tell if the player has the game set fo "Nightmare" difficulty?

The toolset has constants for GAME_DIFFICULTY_CASUAL, GAME_DIFFICULTY_NORMAL and GAME_DIFFICULTY_HARD but there doesn't seem to be one for nightmare. Has anyone been able to test to see if the player has set the difficulty to this level?

Modifié par AmstradHero, 22 janvier 2011 - 10:44 .


#2
ladydesire

ladydesire
  • Members
  • 1 928 messages
I suspect testing for the above constants being TRUE would work; if they all return FALSE, the likelihood of the game being set to Nightmare is quite high.

#3
Proleric

Proleric
  • Members
  • 2 350 messages
The missing constant value for Nightmare mode is 3.

#4
AmstradHero

AmstradHero
  • Members
  • 1 239 messages
Thanks, ladydesire and Proleric. I assume casual = 0, normal = 1 and hard = 2?

#5
Proleric

Proleric
  • Members
  • 2 350 messages
Yes. They're defined in achievement_core_h (which I discovered using DAToolChest). The missing value of 3 was determined by displaying the result of GetGameDifficulty after setting difficulty to Nightmare in game.