ivanforum ivanforum
Forum for Iter Vehemens ad Necem
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   fchat fChat   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Attribute Limits

 
Post new topic   Reply to topic    ivanforum Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Freelance Berzerker
orc general


Joined: 28 Jun 2006
Posts: 805
Location: In Valhalla, currently posing as "Engels"

PostPosted: Mon Aug 07, 2006 10:47 pm    Post subject: Attribute Limits Reply with quote

Hi all,

Does anyone know of how the game codes for upper attribute limits for the PC and monsters?
Back to top
View user's profile Send private message
holybanana
Party Chairman


Joined: 04 Jan 2005
Posts: 155
Location: Above Valpurus

PostPosted: Wed Aug 23, 2006 2:03 pm    Post subject: Reply with quote

Currently the maximum attribute given an exp source is proportional to the starting stat. Let's consider ommel cerumen. If you consume Amount units of volume (millilitres) of it, the following code is run:

Code:
EditExperience(INTELLIGENCE, 500, Amount << 5);
EditExperience(WISDOM, 500, Amount << 5);


This means that you can increase the base stat by 500%. So for normal players with base int and wis 10 you can get int and wis 60 with cerumen. The speed you approach this maximum is proportional to the last parameter of EditExperience, i.e. Amount * 2^5 = Amount * 32. So if you consume two times as much cerumen, you approach the limit twice as fast (as it should be).

A priestess of Silva, on the other hand, has base int 20 and wis 35, so she can get int 120 and wis 210. She gets int 60 by consuming the same amount of ommel cerumen as the player needs for int 30.

I think this algorithm quite well models the differences of say, humans and cave bears. The latter are naturally five times as strong and 50% more agile as humans, so after getting the same amount of exp from some source they are still five times as strong and 50% more agile. However, it doesn't realize that the priestess of Silva's base attribute is actually very close to 10, as she's a human, and her maximums should be close to the player's maximums. She has a starting stats larger than the base stats because she has trained vehemently before the game started. This function for calculating exp is thus responsible for producing the inhuman 100+ agilities and dexterities of mistresses and such. Confused I'm going to make some corrections to it in the next version.
Back to top
View user's profile Send private message Send e-mail
Freelance Berzerker
orc general


Joined: 28 Jun 2006
Posts: 805
Location: In Valhalla, currently posing as "Engels"

PostPosted: Wed Aug 23, 2006 3:33 pm    Post subject: Reply with quote

Thank you so much for that explanation. My curiosity has been satisfied.
Back to top
View user's profile Send private message
dalboz
goblin prince


Joined: 23 Jul 2005
Posts: 490
Location: in front of the computer screen

PostPosted: Thu Aug 24, 2006 2:29 pm    Post subject: Reply with quote

wait, mistresses are HUMAN? Shocked
_________________
"Think like a madman"
Back to top
View user's profile Send private message
Freelance Berzerker
orc general


Joined: 28 Jun 2006
Posts: 805
Location: In Valhalla, currently posing as "Engels"

PostPosted: Thu Aug 24, 2006 3:25 pm    Post subject: Reply with quote

That's what the man said.
Back to top
View user's profile Send private message
dalboz
goblin prince


Joined: 23 Jul 2005
Posts: 490
Location: in front of the computer screen

PostPosted: Fri Aug 25, 2006 10:09 am    Post subject: Reply with quote

more like superhuman if you ask me...

I guess they'll be less difficult to kill now, right?
_________________
"Think like a madman"
Back to top
View user's profile Send private message
Freelance Berzerker
orc general


Joined: 28 Jun 2006
Posts: 805
Location: In Valhalla, currently posing as "Engels"

PostPosted: Fri Aug 25, 2006 11:32 am    Post subject: Reply with quote

I ate them for lunch as it was in the present version.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    ivanforum Forum Index -> Programming All times are GMT


Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2002 phpBB Group