Help with wisdom

Posted by Rob Harper on Mon 22 Sep 2003 05:06 PM — 3 posts, 13,416 views.

#0
Ahh looking for a start, how would I go about making the amount of a skill you gain dependent on the amount of wis you have there for making wis a skill needed to be trained, ie everyone starts out with skills only able to go up to 55 maby and to raise the precentage they can attain they need to train more wis.

Thanks
Canada #1
Couple things you could do, there is a training snippet available that allows mobs flagged as such to train people stats, this could easily be modified to be more skill like. When you say:
Quote:
amount of a skill you gain dependent on the amount of wis you have
Do you mean the Maximum that they can get to? If so, then in learn_from_success, add a check dependant on their wisdom to see how high it can go, something like:
    adept = ( ch->skill_level[skill_table[sn]->guild] - (get_curr_wis(ch)*2) + 50;
. That bit would assume that they can get their wis to 25. If you meant that they gain more than normal the higher their wisom is, then again, in learn_from_success, add it as a multiplier, maybe like
	if ( percent >= chance )
	  learn = 2 + (get_curr_wis(ch)/5);
	else
	if ( chance - percent > 25 )
	  return;
	else
	  learn = 1 + (get_curr_wis(ch)/10);


If you meant both, then both should be applicable. Hope that helps.
Amended on Tue 23 Sep 2003 02:55 PM by Greven
#2
Thanks man that helps alot, didnt even think to change the gain from success code I was looking at the stat attribute effects.