Skill PP Cost 1.01 + Add-Ons

Overview​
So this script provides to make skills that can only be used a number of times
until you reset it. You can set each skills "PP" per actor, meaning one actor
can have a different PP for 1 skill than another actor. The PP can also be
modified in-game via script calls

Also, it's set-up in a way that you can choose if a skill will have PP or not.
If PP for a skill is not defined for that actor, it will use the default costs
instead (MP/TP or probably if you have a custom cost manager, the custom cost)
So you can do like only a certain actor uses PP while all others uses the normal
method.

You can also set what color PP is and can even change colors when it hits a certain
percentage

Screenshots
Skill%20PP.PNG


Changelog
v1.01 - added wrapper functions for modifying the PP of a specific PP skill or all PP skills of an actor/party

Script link

Script can be found here: http://pastebin.com/raw.php?i=qrNuUFBS

Add Ons
Skill Select Restore v1.10
PpSkillSelect.PNG

Terms and conditions
Link is on the script
 


Credits
Hinorashito for helping with the testings
ok i get line 152 syntax error unexpected "/n" expecting tASSOC

also line 52 reads    skill[0] = skill[1]
ah wait... I see, so I really did something wrong there... w8


EDIT: Updated... I hope it's fine now... 🙂
ok now there is an error on line 163 it reads 

unexpected tFID expecting keyword_end
alias? usable_adik_pp usable?
I don't have question mark on the alias... hmmm...


that line should read


alias usable?_adik_pp usable?


if it still doesn't work...

Spoiler
try replacing the lines


alias usable?_adik_pp usable?


def usable?(item)


return self.pp(item.id) > 0 if (item.is_a?(RPG::Skill) and self.has_pp(item.id))


return usable?_adik_pp(item)


end


with


def usable?(item)


return self.pp(item.id) > 0 if (item.is_a?(RPG::Skill) and self.has_pp(item.id))


return super(item)


end
I replaced the lines as you say and now get an error on line 183 it says undefined method on your line 183 lol please dont give up i feel you are to close. this script would help many people lol.
which line was it? oh got it... w8


EDIT: try it now? I had a typo for the class...
line 183 it says
undefined method draw_skill_cost for class windowskill list
which line was it? oh got it... w8


EDIT: try it now? I had a typo for the class...
yeah... the class had a typo actually...


EDIT: reupdated the script... changed something...


EDIT: I do hope it works correctly now...
ok so now it doesnt mess up until you click new game or continue and the error code is 

line 123 syntax error

unexpected tINTEGER PP_SET_UP:😛P_DEAFULT::1
aw... I got it wrong again... right right...


updated script...
dont give up i feel like your close i know you can do it lol i was looking over the script and it just seems like small minor issues and errors keep coming up but at its core i see what its designed to do and how you set it up i know it will be great once u get the kinks out.
yeah... I actually set up the hash call wrong... Maybe it was hangover from me working on my menu customization script which actually uses some eval call to get the correct module... XD... I updated it now...

EDIT: Looks like it needs a bit of in-depth check from me when I get home... 🙂

EDIT 2: 1/3/2014 - It's all fixed now... added a few other options too... 🙂
If anybody has any suggestions of things to add, feel free to post... 🙂


+ if you encounter bugs, feel free to inquire...
I have a question maybe you can help me please. I have an ammo box item that resets the pp of a skill. What do I script in the item so that actor 1s skill menu is brought up and i select one of the skills and the one I select gets its pp reset and then thats it. If i could use that in battle and out that would be great. Then could you explain how you did it because i want to do the same thing in which the menu comes up and you select one of your skills and this item increases max pp of the selected skill.

How would i go about that?
Well, it's not really specific to this script... it's more of "how to make an item that selects a skill during battle"... that will involve making custom commands/selectables... or using one of the skill selection scripts out there, though IDK if it's usable while in battle...

EDIT: If I get time, I might make it as some kind of add-on... but definitely not on my current to-do list
Hmm ok because i had items that i wanted to allow you to reduce the max mp cost of a particular skill by 1 mp point as well darn lol i figured you of all people would know for sure lol well back to the drawing board.
sending a PM since it is Off-topic... 🙂
Update! Added an add-on that lets you make items/skills/events where you select an actor's PP skill so that you can restore PP to it...
Update! Updated the add-on script to allow cancellation of skill selection and fixed some bugs. 🙂

Original thread: https://forums.rpgmakerweb.com/threads/skill-pp-cost-1-01-add-ons.21757/