• ✨ ARCHIVE MODE ✨
    The forum has now been set to read-only mode, no new posts, resources, replies etc will not be possible.
    We recommend you join our Discord server to get real-time response: Discord Invite Link

Solved Difficulty settings

Status
Not open for further replies.

nilllzz

Original Developer
Administrator
P3D Developer
well...nothing? Its only purpose is to make the game harder.
 

DracoHouston

Kolben Developer
Contributor
what do they do? besides making it harder.
increases the level of the pokemon you fight. a pokemon thats level 2 on easy is level 3 on medium and level 4 on hard. i dont know if it goes beyond +1/+2 levels at higher levels but it makes the battles a little bit harder
 

nilllzz

Original Developer
Administrator
P3D Developer
Formula is as follows:
Difficulty:
0: Level = Level
1: Level + (int(Ceiling(Level / 10)) = Level
2: Level + (int(Ceiling(Level / 5)) = Level
 

Splint

Champion
Say you are fighting a pokemon that is on normal lvl 15
On difficulty level 1 this would be 15 + (15 / 10) rounded up

Code:
15 / 10 = 1.5 but it rounds up (Ceiling) so it is 2
15 + 2 = 17
On difficulty level 2 this would be 15 + (15 / 5) rounded up
Code:
15 / 5 = 3 
15 + 3 = 18
Difficulty:
0: 15
1: 17
2: 18

At least i think it is this way i suck at math lol :p
 

Darkfire

Administrator
Administrator
P3D Developer
int(erger) tells it to round and ceiling tells it to round up(if it was round down it would be something like floor)
 

Splint

Champion
"int" just tells the program it is a "Integer" which means a rounded number with no decimals "ceiling" means it rounds up the numbers
 

DracoHouston

Kolben Developer
Contributor
So basicly, putting the difficulty settings higher, will also result in more exp?
yes, an unintended consequence of this will be that you can level off hard wild pokemon then beat easy trainers. i dont know what needs to be done about this, or even if its a 'problem' at all, but there you go

perhaps difficulty should be locked in at character creation? but you can just edit the save files if they're still just plain text so no matter what you do ingame people can game it
 

DracoHouston

Kolben Developer
Contributor
What "int" and "ceiling" means in the ecuation?
like others have said it rounds the number, but heres how

high level programming languages have a bunch of 'types' that variables can be, that indicate how it is stored in memory and what it represents. a number stored as a floating point number (like 0.01 for example) looks completely different in binary than an 'integer' number (whole number like '20000') so when you want to store the value of something into a variable of another type you 'cast' it. this basically tells the compiler you want it converted and it does all that for you. obviously if you're going from a number with a decimal place in it to a whole number you're gunna lose all the digits after the decimal. so it kind of chops off the remainder, and rounds up or down then gives you the whole number of that.

i guess it doesnt in vb.net (i forget if it does or not) so ceiling is rounding up the result of level / 5 etc
 

DracoHouston

Kolben Developer
Contributor
by the way, can the pokemon go beyond level 100? will hard mean level 100 trainers have level 120 pokemon? might be cool. very guild wars 1
 

Techzmex

Starting Trainer
by the way, can the pokemon go beyond level 100? will hard mean level 100 trainers have level 120 pokemon? might be cool. very guild wars 1
Oh God, I just got a very distant premonition of what Trainer Red's team will look like on difficulty level 2 and up.
The horror.
Of course, this is a VERY LONG time away from 0.20.
Think of it: Lvl 81 Pikachu would be Lvl 97. And that's just difficulty level 2.
 
Status
Not open for further replies.
Top