Checkskill.. how it works?

Get Help on scripting in POL with configurations, config setups, script trouble shooting, etc.
Post Reply
Gnafu
Grandmaster Poster
Posts: 136
Joined: Thu Feb 02, 2006 7:29 am

Checkskill.. how it works?

Post by Gnafu »

I need some explanation about the function

CheckSkill( character, skillid, difficulty, points )

I can't understand how "points" influences the growing of the skill...

Points should be the points gaind on success but many scripts use that function with Points having the same value as Difficulty...

if "points" is 100 how much do i gain on success?
Surely is NOT 10% :P

:?:
User avatar
CWO
POL Expert
Posts: 1160
Joined: Sat Feb 04, 2006 5:49 pm

Post by CWO »

points affects skillgain. The more points you're given, the easier it is to gain that skill. Now it seems that would be controlled by difficulty but its not. Difficulty is the success rate difficulty.

I *think* by default, there is a script pkg/foundations/hooks/shilskill is the script that handles CheckSkill. If not, look for syshook.cfg and look for a definition like this

SystemHookScript shilSkill.ecl
{
CheckSkill ShilCheckSkill
}

If you have a definition for CheckSkill like that, the function isnt handled by the core but hooked to the corresponding script. There you can find exactly how everything is handled.
Gnafu
Grandmaster Poster
Posts: 136
Joined: Thu Feb 02, 2006 7:29 am

Post by Gnafu »

Thank you very much.

I've already red shilskill but i wasn't sure if it was related to checkskill.
Post Reply