The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Scripts Database => Topic started by: albertfish on September 14, 2009, 03:35:42 AM

Title: Skill Points Spending System - by: albertfish
Post by: albertfish on September 14, 2009, 03:35:42 AM
Skill Points Spending System
Version: 2.0
Author: albertfish
Date: December 3, 2009

Version History



Planned Future Versions


Description


This is a point spending system that allows you to add points to skill areas. For example cooking, or stealth.

Features


Screenshots
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg38.imageshack.us%2Fimg38%2F9056%2Fafspssss1.png&hash=66989ac576df10c94ff114e074e3151a7bcf2a26)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg38.imageshack.us%2Fimg38%2F9928%2Fafspssss2.png&hash=6c486e09b85816c6ea2730aadc7ab38fa11697b3)

(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg12.imageshack.us%2Fimg12%2F5232%2Fafspssss3.png&hash=1f022dafb697c3da201df828e1f40dd71f8582a8)

Instructions

Usage Instructions:
[/list]
Code: [Select]
    To get the number of skill points for any given skill, use this command:
         $game_party.skills("Actors name", "Skill name")
     The actors name and the skill name must be contained inside the quotation marks. Also this command is case sensitive.
     To use this command via an event script call you will need to storethis data in a game variable. To do this use this code in the script box.
         a = "Actor Name"
         s = "Skill Name"
         num = $game_party.skills(a, s)
         $game_variables[#] = num
     Where # is the number of the variable you want to store it in.

     To call the menu script type: $scene = Scene_SkillPoint.new
Install Instructions:
     Place this script above the main script and below the default scripts.

Script


Please see the attached script or the demo!

Credit



Thanks


Support


If you need to contact me you can send me a pm.

Known Compatibility Issues

No compatibility issues found yet.

Demo


There is a demo available! The demo is attached to this post.

Author's Notes


If you discover any bugs, please pm me or post the bug here! Thanks.
Enjoy :).

Restrictions

You may use this in your game commercial or non-commercial as long as proper credit is given.[/list]
Title: Re: Skill Points Spending System - by: albertfish
Post by: modern algebra on September 14, 2009, 10:32:12 PM
This looks like another nice script. Great work albertfish!
Title: Re: Skill Points Spending System - by: albertfish
Post by: phillip1756 on September 15, 2009, 05:25:33 PM
OMG  blud u is a legend,wot do i owe you 4 making this?
Title: Re: Skill Points Spending System - by: albertfish
Post by: Grafikal on September 15, 2009, 05:59:07 PM
i ka knot reed stoopid
Title: Re: Skill Points Spending System - by: albertfish
Post by: albertfish on September 15, 2009, 11:57:31 PM
OMG  blud u is a legend,wot do i owe you 4 making this?
Glad you like it :).
Title: Re: Skill Points Spending System - by: albertfish
Post by: phillip1756 on September 17, 2009, 07:56:38 PM
OMG  blud u is a legend,wot do i owe you 4 making this?
Glad you like it :).
do you wanna help with my game?
Title: Re: Skill Points Spending System - by: albertfish
Post by: Lazer Ki on September 17, 2009, 08:00:08 PM
I just had to post 'lol' at the skill 'Sexiness'
Title: Re: Skill Points Spending System - by: albertfish
Post by: albertfish on September 18, 2009, 01:10:32 AM
do you wanna help with my game?
I can help if you have questions, however I just started back at school so I am extremely busy and am at school most of the day (about 15-16 hours a day :|) so I don't have a lot of extra time. But I'll be on the forum if you have and questions, and I am sure others can help too!
Title: Re: Skill Points Spending System - by: albertfish
Post by: phillip1756 on September 19, 2009, 08:42:11 AM
i need a few more instructions on how to use it
Title: Re: Skill Points Spending System - by: albertfish
Post by: albertfish on September 19, 2009, 08:50:37 AM
i need a few more instructions on how to use it
Did you read my comments? At this point:
Code: [Select]
SKILL_DATA.push("Fire", 0)          # This is the first skill displayed
SKILL_DATA.push("Sexiness", 100)    # This is the second skill displayed
SKILL_DATA.push("Stealth", 5)       # etc. Keep following the pattern
SKILL_DATA.push("Cooking", 10)      # to add more skills.

You add all the skills you want and set the default starting value.

Code: [Select]
SKILL_DATA.push("Skill 1", 0)
SKILL_DATA.push("Skill 2", 0)
SKILL_DATA.push("Skill 3", 0)
SKILL_DATA.push("Skill 4", 0)
SKILL_DATA.push("Skill 5", 0)
SKILL_DATA.push("Skill 6", 0)
SKILL_DATA.push("Skill 7", 0)
SKILL_DATA.push("Skill 8", 0)

It's pretty straight forward :P.
Title: Re: Skill Points Spending System - by: albertfish
Post by: Mr_Wiggles on November 22, 2009, 03:45:49 AM
Question? would it be possible to adjust the skill amounts through and event?
reason? because I'm making a game that use only one character but you Can choose from three and i wanted to edit this for each like character 1 has 50 sexiness and character 2 has only 25, and so on would this be possible?
Orr....
by actor id
to give individual actors unique skills
Title: Re: Skill Points Spending System - by: albertfish
Post by: albertfish on November 23, 2009, 03:00:29 AM
Question? would it be possible to adjust the skill amounts through and event?
reason? because I'm making a game that use only one character but you Can choose from three and i wanted to edit this for each like character 1 has 50 sexiness and character 2 has only 25, and so on would this be possible?
Orr....
by actor id
to give individual actors unique skills
Hey, that's a good idea. I'll work on something so that you can edit the skills for each character separately. It may take a bit of time since my exams are right around the corner.
Title: Re: Skill Points Spending System - by: albertfish
Post by: Mr_Wiggles on December 01, 2009, 07:36:20 AM
thanx man.. lol i just got done pm you about puting limits on how high the skills can go too
Title: Re: Skill Points Spending System - by: albertfish
Post by: albertfish on December 03, 2009, 10:51:31 PM
New version of the script available, version 2.0!

Also, there is a PDF Manual will instructions on how to use every function. This manual is included with the new demo.[/list]
Title: Re: Skill Points Spending System - by: albertfish
Post by: Mr_Wiggles on December 04, 2009, 12:03:30 AM
NICE work, just pluged it in over the old and works like a charm, there was a slight lag when i leveled up but that could be because of the virus scan im doing since i found out that my glary's utilities was infected... ahh well
GREAT work this script is practicly my game you'll be sure to get FULL credit for your hard work...

[edit] - The lag was because of when the player leved up ABS would play a ME to notify the player, i turned that off and now NO lag....

[edit 2] - If youd like perhaps you can make a way to show a discription of the skill you select so the player knows what its used for "not particularly needed" but if youd like to make further improvements perhaps this could be an idea...
Title: Re: Skill Points Spending System - by: albertfish
Post by: dewm3734 on December 14, 2009, 11:36:13 PM
Hae albertfish, im using your script and it great but I had one problem... for some reason when i called the window there would be no writing present, like the skills would not be listed, I fixed it (surprisingly) but to do that i had to go passed the point where i shudn't change anything unless i knew what I was doing and i had no idea lol and very time i came across this message: self.contents = Bitmap.new (width - 32, @item_max * 32) (for example) I would have to add: self.contents.font.name = $defaultfonttype and self.contents.font.size = $defaultfontsize, um i do not think that i did anything wrong when downloading i so could you plez tell me why I needed to do this?
Title: Re: Skill Points Spending System - by: albertfish
Post by: albertfish on December 15, 2009, 02:15:26 AM
Hae albertfish, im using your script and it great but I had one problem... for some reason when i called the window there would be no writing present, like the skills would not be listed, I fixed it (surprisingly) but to do that i had to go passed the point where i shudn't change anything unless i knew what I was doing and i had no idea lol and very time i came across this message: self.contents = Bitmap.new (width - 32, @item_max * 32) (for example) I would have to add: self.contents.font.name = $defaultfonttype and self.contents.font.size = $defaultfontsize, um i do not think that i did anything wrong when downloading i so could you plez tell me why I needed to do this?
Well, this script works perfectly fine for me which means that the script it self is working. Are you using other scripts? If so, there may be a conflict that could be causing the problem.

The only things that really come to mind is maybe you are using a script that edits the Window_Base or Window_Selectable classes, which could effect how the window is drawn.

Would you be able to tell me if you are running other scripts, and if so which ones?
Title: Re: Skill Points Spending System - by: albertfish
Post by: dewm3734 on December 15, 2009, 03:02:44 AM
Yep i've got a hp, mp and exp bar script and double weapon script... The hp, mp and exp bar script edits the window so that is probably my problem.