Introduce to idea:
I tryed to make possibility to learn every skills from books. Traditional way it require to made 18 books items with script. But i found different better way to do it.
Concept:
When item contain script, thay are storaged in backpack separately, so i made just misc items with use_on option and put whole procedure to player obj_dude script. So to read book you need to use it on your character.
Its only one item "books of knlowledge" from you learn randomly selected skill.
Chances to learn something new depend on your inteligence 60% and perception 40%. When you failure: only waste time by reading. When succes: learn few points of knowledge (amount could depend on luck somehow)
Charisma work as pesimist 1-3 and optimist 8-10 so when you cant learn anything new, character shown angry message "fuck this all!" or positive message "next time will be better"
procedures from obj_dude script: CODE HERE
Messages from obj_dude.msg
Picture for item: "books of science" from game
I tryed to make possibility to learn every skills from books. Traditional way it require to made 18 books items with script. But i found different better way to do it.
Concept:
When item contain script, thay are storaged in backpack separately, so i made just misc items with use_on option and put whole procedure to player obj_dude script. So to read book you need to use it on your character.
Its only one item "books of knlowledge" from you learn randomly selected skill.
Chances to learn something new depend on your inteligence 60% and perception 40%. When you failure: only waste time by reading. When succes: learn few points of knowledge (amount could depend on luck somehow)
Charisma work as pesimist 1-3 and optimist 8-10 so when you cant learn anything new, character shown angry message "fuck this all!" or positive message "next time will be better"
procedures from obj_dude script: CODE HERE
Messages from obj_dude.msg
Item description:{200}{}{You tryed to learn something new from these books, but you only waste few hours from your life..}
{201}{}{FUCK THIS ALL!}
{202}{}{Uh nevermind, next time will be better!}
{203}{}{HA HAH! I LEARN THIS FUCKING BOOK!}
{204}{}{Life is great! I have new knowledge!}
{205}{}{After few hours of reading you learn something new about }
{300}{}{colts and riffles.}
{301}{}{heavy military guns.}
{302}{}{modern energy weapons.}
{303}{}{karate and boxing.}
{304}{}{spears and knives.}
{305}{}{throwing grenades.}
{306}{}{first aid.}
{307}{}{heal broken bones.}
{308}{}{sneak silently.}
{309}{}{lockpicks and thieving.}
{310}{}{stealing goods from peoples.}
{311}{}{field mines and other traps.}
{312}{}{high science.}
{313}{}{repair broken stuff.}
{314}{}{politics and flirt conversation.}
{315}{}{buy and sell stuff and earn money.}
{316}{}{traditional and computer games.}
{317}{}{survival art.}
{54100}{}{Books of Knowledge}
{54101}{}{You never cant be sure what they contain until you read them. Its worth to spend some time on reading because you may learn many usefull skills.}
Picture for item: "books of science" from game