[XP] Skill Equipment System

Started by G_G, September 24, 2009, 11:20:10 pm

Previous topic - Next topic

Calintz

Have you thought about making an identical script that utilizes a cap rather than AP?? Like, I have played games where you have all your skills, but you don't have to have a certain AP / SP to equip them. You can just equip so many. Like, you have learned 16skills, but you can only equip 4at a time.

It would keep it's strategic nature, as you would be strategically equipping your skills for specific boss battles and what not.
It would parallel this system beautifully.

G_G

October 09, 2009, 12:51:57 pm #21 Last Edit: October 09, 2009, 01:00:32 pm by game_guy
This can be that way, name the Ap to Caps, make every skill only cost 1.

EDIT:
Change this
ApCost       = 5

to 1 then below in the Config Ap Cost change it to this
def self.skill_ap(id)
   case id
   #-------------------------------------------------------------------------
   # Config Ap Costs
   # Use this when configuring
   # when skill_id then return ap_cost
   #-------------------------------------------------------------------------
   when 0 then return 1
   end
   return ApCost
 end

Calintz

-slaps himself in the face and walks away (tail between his legs)-

Orici

I tried the script in a fresh new project, just in cas and y must say that god has something against me or this scritpt  :evil:,
now the error is in line 152, NameError ocurred
undefined local variable or method 'skill' for <#gameactor:0x15d7e50>

G_G

now try sorry I'm making such noob scripting mistakes I'm just off today lol

Orici

October 09, 2009, 09:04:17 pm #25 Last Edit: October 10, 2009, 11:27:50 am by Orici
It works fine now, thank you
EDIT: I didn't notice this before but now i can't go to the normal Skill menu

G_G

Then its gotta be your scripts, this script in no way messes with Scene_Skill is there an error or what? And are you using the modded menu I placed in the demo? if so then dont use it, the menu's probably bugged

Orici

No, i tried in a new project and still get this:
Script Window Base line 23 nomethoderror
undefined method name for nil:class

G_G

I'll look into it later....I'm busy right now but I'll be sure to fix it.

Calintz

Oh, naughty Game_Guy releasing buggy scripts!! O.o

G_G

October 12, 2009, 06:45:36 pm #30 Last Edit: October 12, 2009, 06:50:27 pm by game_guy
*updates yet again*
Okay I for sure fixed it this time I even tested it this time :P
Sorry for all the bugs like I said I usually have people test it. I had one person is all.

EDIT:
Frick dude I made tons of mistakes in this one, anyways updated again!

Calintz

Mistakes don't matter so long as you're willing to fix them. =D.

Orici

Now it really works but i found a small bug  :^_^': : if your charcter doen's have a skill and you go to the skill equip window, you can equip an 'invicible' skill wich cannot be removed and will take up your AP!
I know it can be easily avoided,there is no need to fix that, just wanted to let you know  ;)

Orici

Sorry for the double post but i got an idea: force some skills to be always equipped  or hide them from the skillequip window.

G_G

Nice idea, I might implement it later.

FuriKuri

I'm sorry for bringing up thi topic, but I'm getting an error:

Script "Skill Equipment System" line 194 NoMethodError occurred.
Undefined method `+' for nil:NilClass

It happens when I use a call script to increase max ap of a character.

This is the call script: "$game_actors[1].add_map(1)"


Could somebody help me? :(

G_G

Updated and fix. Thanks for reporting the bug. :)

FuriKuri

January 24, 2010, 05:17:37 pm #37 Last Edit: January 24, 2010, 05:22:42 pm by FuriKuri
The error is fixed  :D and pretty quickly too! ;)

...sadly... I think I found another bug  :(

If I use a call script to increase max AP, the AP doesn't get updated...
Take a look at the image:
Spoiler: ShowHide


In case you're wondering, the max AP is 4, and I have no skills equiped...
However the available AP is just 3  :huh:

Sorry if this is a bit confusing; basically what I'm trying to say is:

If I use a call script to increase max AP, the max AP increases; but I can only use the AP I had before. Not sure if it's just me  :???:

G_G

Updated again. I think I fixed it for sure.

FuriKuri

Totally working!  :haha:

Thank you SO very much!