Sorcerer's Place Stores: Games, Books, DVDs, Merchandise (buying via these links & our affiliated stores below helps support the site - thanks!) |
||
Have you liked us yet? |
![]()
![]() |
|
|
|
|||||||
| Baldur's Gate 2: Throne of Bhaal For posts concerning Baldur's Gate 2 with the Throne of Bhaal expansion installed. (Check out our BG2 Online Walkthrough). Please post here even if you are playing only the SoA part of the game, but have ToB installed. NOTE: If you have installed the BG1Tutu or BG Trilogy mods, or intend to play with them installed, you should be posting in this forum! |
![]() |
|
|
Thread Tools |
|
|
#2 |
|
I speak in rebuses
|
I'm assuming 255 (well, 256 is you can nil as one of the values), but depending on how it's programmed it could be any power of 255.
|
|
|
|
|
|
#3 |
|
Join Date: Apr 2002
Location: Chirofen
Posts: 7,140
Blog Entries: 252
Like: 63
Liked 17 Times in 15 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
I had presumed 255 then wondered, if it was smaller. If the devs never needed that many values they could easily have limited to four bits instead of eight, or simply set a cap altogether.
Will have to have a play I guess! ![]() Negative increments in globals could be interesting if they go negative too
|
|
|
|
|
|
#4 |
|
I speak in rebuses
|
Actually... don't some of the variables in PST go negative? I seem to remember the variables for Lawful/Chaotic and Good/Evil were at 0 for neutral and could go either way. In the case of such variables the numerical limit at either end would be half of the "normal" variable (so for an 8-bit variable the range could be either 0 to 255 or -127 to +127). I am going by the assumption that they use 8-bit variables but you're right, they don't have to. The variables for gold and experience definitely use more bits, the others could use less.
|
|
|
|
|
|
#5 |
|
Join Date: Oct 2000
Location: San Pedro, CA, USA
Posts: 9,726
Blog Entries: 18
Like: 19
Liked 45 Times in 32 Posts
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
-128 actually... There are still 256 numbers represented by 8 bits when interpreting them as 2s complement.
|
|
__________________
Who put the rapist in therapist? |
|
|
|
|
![]() |
| Thread Tools | |
|
|