Skill PP Cost 1.01 + Add-Ons

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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


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
 
Last edited by a moderator:

Hinorashito

Apprentice
Member
Joined
Feb 14, 2013
Messages
130
Reaction score
14
First Language
english
Primarily Uses
ok i get line 152 syntax error unexpected "/n" expecting tASSOC

also line 52 reads    skill[0] = skill[1]
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
ah wait... I see, so I really did something wrong there... w8


EDIT: Updated... I hope it's fine now... :)
 
Last edited by a moderator:

Hinorashito

Apprentice
Member
Joined
Feb 14, 2013
Messages
130
Reaction score
14
First Language
english
Primarily Uses
ok now there is an error on line 163 it reads 

unexpected tFID expecting keyword_end
alias? usable_adik_pp usable?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...

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
 
Last edited by a moderator:

Hinorashito

Apprentice
Member
Joined
Feb 14, 2013
Messages
130
Reaction score
14
First Language
english
Primarily Uses
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
which line was it? oh got it... w8


EDIT: try it now? I had a typo for the class...
 
Last edited by a moderator:

Hinorashito

Apprentice
Member
Joined
Feb 14, 2013
Messages
130
Reaction score
14
First Language
english
Primarily Uses
line 183 it says
undefined method draw_skill_cost for class windowskill list
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 
Last edited by a moderator:

Hinorashito

Apprentice
Member
Joined
Feb 14, 2013
Messages
130
Reaction score
14
First Language
english
Primarily Uses
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::pP_DEAFULT::1
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
aw... I got it wrong again... right right...


updated script...
 
Last edited by a moderator:

Hinorashito

Apprentice
Member
Joined
Feb 14, 2013
Messages
130
Reaction score
14
First Language
english
Primarily Uses
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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... :)
 
Last edited by a moderator:

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
If anybody has any suggestions of things to add, feel free to post... :)


+ if you encounter bugs, feel free to inquire...
 
Last edited by a moderator:

Hinorashito

Apprentice
Member
Joined
Feb 14, 2013
Messages
130
Reaction score
14
First Language
english
Primarily Uses
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?
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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
 
Last edited by a moderator:

Hinorashito

Apprentice
Member
Joined
Feb 14, 2013
Messages
130
Reaction score
14
First Language
english
Primarily Uses
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.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
sending a PM since it is Off-topic... :)
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
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...
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,682
Reaction score
3,003
First Language
Tagalog
Primarily Uses
RMVXA
Update! Updated the add-on script to allow cancellation of skill selection and fixed some bugs. :)
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Profile Posts

Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:

Forum statistics

Threads
105,855
Messages
1,017,007
Members
137,563
Latest member
MinyakaAeon
Top