Donations
GOG.com
Sorcerer's Place Home | Chatrooms | BoM Rules & FAQ
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?
    


Boards o' Magick BoM Blogs!

Go Back   Boards o' Magick > D&D Games Forums > Baldur's Gate 2: Throne of Bhaal

Notices

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!

PLEASE SUPPORT SORCERER'S PLACE BY BUYING FROM OUR NEW SHOP!

Reply
 
Thread Tools
Old Tue, 24th Jun '08, 7:44pm   #1
8people Points for Confirmed Friends
SPS Account Holder
8 is just another way of looking at infinite
 
8people's Avatar
 

Join Date: Apr 2002
Location: Chirofen
Posts: 7,140
Blog Entries: 252
Like: 63
Liked 17 Times in 15 Posts
vBActivity - Stats
XP: 19,563
Level: 39
vBActivity - Bars
Achievements To Read Me is To Love MeFamousBronzed Blogging God(dess)Wanna ShareJunior Blogger
8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future
Send a message via MSN to 8people Send a message via Yahoo to 8people
Variable Limits

Probably something I should know, but only really just thought about...

What are the numerical limits that a variable can have as its value?
8people is offline   Reply With Quote
Old Tue, 24th Jun '08, 10:19pm   #2
Ziad
I speak in rebuses
 
Ziad's Avatar
 

Join Date: Aug 2004
Location: Montreal
Posts: 4,088
Like: 0
Liked 0 Times in 0 Posts
vBActivity - Stats
XP: 9,148
Level: 28
vBActivity - Bars
Achievements New DeliveryHappy Anniversary!BoM ExperiencedI Survived a Month!No Longer a Newbie
Ziad is a glorious beacon of lightZiad is a glorious beacon of lightZiad is a glorious beacon of lightZiad is a glorious beacon of lightZiad is a glorious beacon of light
Default

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.
Ziad is offline   Reply With Quote
Old Tue, 24th Jun '08, 10:32pm   #3
8people Points for Confirmed Friends
SPS Account Holder
8 is just another way of looking at infinite
 
8people's Avatar
 

Join Date: Apr 2002
Location: Chirofen
Posts: 7,140
Blog Entries: 252
Like: 63
Liked 17 Times in 15 Posts
vBActivity - Stats
XP: 19,563
Level: 39
vBActivity - Bars
Achievements To Read Me is To Love MeFamousBronzed Blogging God(dess)Wanna ShareJunior Blogger
8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future8people has a brilliant future
Send a message via MSN to 8people Send a message via Yahoo to 8people

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
8people is offline   Reply With Quote
Old Tue, 24th Jun '08, 10:41pm   #4
Ziad
I speak in rebuses
 
Ziad's Avatar
 

Join Date: Aug 2004
Location: Montreal
Posts: 4,088
Like: 0
Liked 0 Times in 0 Posts
vBActivity - Stats
XP: 9,148
Level: 28
vBActivity - Bars
Achievements New DeliveryHappy Anniversary!BoM ExperiencedI Survived a Month!No Longer a Newbie
Ziad is a glorious beacon of lightZiad is a glorious beacon of lightZiad is a glorious beacon of lightZiad is a glorious beacon of lightZiad is a glorious beacon of light
Default

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.
Ziad is offline   Reply With Quote
Old Tue, 24th Jun '08, 11:18pm   #5
Blackthorne TA
SPS Account Holder
Administrator
Master in his Own Mind
 
Blackthorne TA's Avatar
Default

-128 actually... There are still 256 numbers represented by 8 bits when interpreting them as 2s complement.
__________________
Who put the rapist in therapist?
Blackthorne TA is offline   Reply With Quote
Reply


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


Sorcerer's Place is an independent project run entirely by fans and for fans. Maintaining Sorcerer's Place and a stable environment for all our hosted sites requires a substantial amount of time and money on a regular basis, so please consider supporting us to keep the site up & running smoothly. Thank you!

All times are GMT +2. The time now is 6:03am.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.