Heh, difficulty so obscene it had to be censored!minmay wrote:Hey Mwah, I think I'm making some progress.
Change difficulty cheat pls?
Re: Change difficulty cheat pls?
Re: Change difficulty cheat pls?
That seems to me like it would be an extremely bad way to handle it. It would be far cleaner to have a multiplier in the damage calculation, since you have to make that sort of calculation going in the other direction anyway based on the character's current stats, weapon, skills, dual wield penalty (if any), and target's armor. For an NPC, perhaps it's more basic and only has to take into account armor, but still. Storing it like that makes it more difficult to make changes, which they'd certainly want to be doing during development.PSY wrote:I reckon there's a lot of data concerning monster stats that is saved in the savegame files, so the difficulty level is not just a byte or two you can switch.
Meaning the engine probably works like this:
..rather than this:Code: Select all
* Savegame with all monster stats is loaded (READ SKELETONDAMAGE) * Skeleton encounter coming up: Function DealDamgeToParty(Skeleton) HitParty(SKELETONDAMAGE) End Function
Code: Select all
* Savegame is loaded * Skeleton encounter coming up: Function DealDamgeToParty(Skeleton) If difficulty_level = 1 then SKELETONDAMAGE = 50 If difficulty_level = 2 then SKELETONDAMAGE = 100 If difficulty_level = 3 then SKELETONDAMAGE = 150 HitParty(SKELETONDAMAGE) End Function
Dunno, just my 2ct. Would make sense to me, though.
Cheers,
PSY
Re: Change difficulty cheat pls?
Hey,Vardis wrote:That seems to me like it would be an extremely bad way to handle it. It would be far cleaner to have a multiplier in the damage calculation, since you have to make that sort of calculation going in the other direction anyway based on the character's current stats, weapon, skills, dual wield penalty (if any), and target's armor. For an NPC, perhaps it's more basic and only has to take into account armor, but still. Storing it like that makes it more difficult to make changes, which they'd certainly want to be doing during development.
you completely misunderstood me
Of course it's not like this. I just wanted to make clear that it's highly unlikely that the difficulty level is just saved in a byte or two inside the savegame file. UNLESS the difficulty only affects the monster's damage and hitpoints. Even then, it's probably encrypted. Maybe Almost Human just didn't want people to change the difficulty setting at hard points in the game.
Of course, the damage calculation is FAR MORE complex than in the code I posted.
But, IF the difficulty setting really only affects the monster's damage and hitpoints, it would be easy to:
Code: Select all
(pretty complex damage calculation, taking equipment, armor, skills, attributes, luck factor, weapons and stuff into account) X difficulty_multiplier
Cheers,
PSY
https://psy-labs.com
Coders don't die, they just gosub without return
Coders don't die, they just gosub without return
Re: Change difficulty cheat pls?
viewtopic.php?f=18&t=7641#p77767
petri wrote:Difficulty level only affects the speed and aggressiveness of monsters.
Grimrock 1 dungeon
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Grimrock 2 resources
I no longer answer scripting questions in private messages. Please ask in a forum topic or this Discord server.
Re: Change difficulty cheat pls?
minmay wrote:viewtopic.php?f=18&t=7641#p77767petri wrote:Difficulty level only affects the speed and aggressiveness of monsters.
Woah,
thanks a lot for that info mate !!
Cheers,
PSY
https://psy-labs.com
Coders don't die, they just gosub without return
Coders don't die, they just gosub without return
Re: Change difficulty cheat pls?
Most have accidentally turned on the Dark Souls option. Because that was the sounds I made the first time I ran into the Asylum Demon.Rithrin wrote:Heh, difficulty so obscene it had to be censored!minmay wrote:Hey Mwah, I think I'm making some progress.
It is pitch black. You are likely to be eaten by a grue.
My end game stats LoG 1st play through
My end game stats LoG 1st play through