Page 1 of 1

Checkskill.. how it works?

Posted: Tue Sep 12, 2006 11:55 pm
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

:?:

Posted: Wed Sep 13, 2006 1:41 pm
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.

Posted: Wed Sep 13, 2006 11:07 pm
by Gnafu
Thank you very much.

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