[XP] Skill Shop

Started by G_G, June 07, 2009, 06:32:20 am

Previous topic - Next topic

G_G

@dylanf3: I'll add it
@Blizzard: I'll fix it

G_G

*updates*
Fixed the bug blizz posted, and added sorting by pricing

ojp2010

Doesn't really work well with Mouse controller any way to edit it or fix?

ForeverZer0

Very nice. I can't believe nobody has done this yet. Lvl ++
I am done scripting for RMXP. I will likely not offer support for even my own scripts anymore, but feel free to ask on the forum, there are plenty of other talented scripters that can help you.

Holyrapid

Why was this excelnt script forgotten for so long? This is a great system.

ojp2010

Is there a way to make it so the shop will only show you skills that your class can use, instead of listing them all and saying which ones you can't learn.

zottel89

October 15, 2012, 11:41:50 am #46 Last Edit: October 15, 2012, 11:44:27 am by zottel89
I'm sorry for necroposting,
but I have a question regarding this script (and I think it's awesome by the way^^) !

The thing is:

I can buy the same skill over and over again with the same character !
I guess it's because I'm using a Skill Equipping system (by game_guy) ?!

Is there a way to only be able to learn a skill ONCE per character,
even though I'm using the skill equipping script (which means they don't appear directly in the skill menu) ?!

KK20

Try this.
class Game_Actor < Game_Battler
  def skill_learn?(skill_id)
    return @skills.include?(skill_id) or @eskills.include?(skill_id)
  end
end

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!

G_G

Oh wow, I hadn't realized the two scripts would even conflict. >.< Thanks again KK20 for fixing my scripts again. *levels up*

zottel89

Quote from: Ezel Berbier on October 15, 2012, 01:36:38 pm
Try this.
class Game_Actor < Game_Battler
  def skill_learn?(skill_id)
    return @skills.include?(skill_id) or @eskills.include?(skill_id)
  end
end



Uuuhm sry for the dumb question,
but where do I have to input this?

G_G

@KK20: That snippet you provided has a syntax error. I dunno why but it errors out with "or" but when you use "||" instead, it works just fine.

@zottel: Just use my updated Skills Equipment Script and you'll be fine.

KK20

herp

Didn't know about that. I didn't test it (if that was any indication), it just looked logical to me. Probably would work if you use parenthesis around the statement.
return (@skills.include?(skill_id) or @eskills.include?(skill_id))
Glad to have pointed that out for you! All scripts must be perfect!
Big IMG: ShowHide

Other Projects
RPG Maker XP Ace  Upgrade RMXP to RMVXA performance!
XPA Tilemap  Tilemap rewrite with many features, including custom resolution!

Nintendo Switch Friend Code: 8310-1917-5318
Discord: KK20 Tyler#8901

Join the CP Discord Server!