How to add skill and status caps?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.

Moderator: POL Developer

Post Reply
Nixroc
New User
Posts: 16
Joined: Wed May 27, 2009 2:41 am

How to add skill and status caps?

Post by Nixroc »

Was woundering after seeing after shards how they have a whole .age system and having a skill and status caps was woundering on how to do something like this..

I'm using POL 96 converted from POL 95..
Pierce
Forum Regular
Posts: 420
Joined: Thu Feb 02, 2006 8:33 am

Re: How to add skill and status caps?

Post by Pierce »

If you want a real good and flexible stat/skill system you should use Pol 98.
The conversion from 96 to 98 is quite easy compared to 95->96.

The new attributes.em commands and some char.members allow you to do
everything you want. Each character can have it's own values, depending
on perhaps his class, items he has equipped, quests solved or whatever you
can think of.

Even if every character starts with the same values, you can manipulate them
at every time with every script using the following few commands/members:

Code: Select all

GetAttributeDefaultCap ( attrname );
GetAttributeCap( character, attrname );
SetAttributeCap( character, attrname, capvalue );
character.statcap := x;
character.skillcap := y;
Post Reply