Jump to content


Photo

CSCA Skill Shop v1.0

csca skill shop

  • Please log in to reply
18 replies to this topic

#1 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 24 May 2012 - 08:10 AM

CSCA Skill Shop v1.0
By: Casper Gaming (Casper667)
Last Update: May 24th, 2012

Introduction
This script will allow you to easily create shops that sell skills.

Features
- Easily create shops that sell skills.
- Set skill price through notetags.
- Limit which skills an actor can learn through the shop in the actor note tags.

Screenshots
Spoiler


How to Use
Place in your materials section. Script is Plug n Play. Instructions on how to use the note tags and script calls is in script.

Demo
Not needed.

Script
Text file is found here(copy and paste everything into your script editor in the materials section): LINK

FAQ
None yet.

Credit
Casper Gaming

Terms
http://www.caspergam...rms_of_use.html

Edited by casper667, 07 September 2012 - 01:49 PM.


#2 Tsukihime

Tsukihime

    Advanced Member

  • Member
  • 7120 posts
  • LocationToronto
  • RM Skill - Coder

Awards Bar:

Users Awards

Posted 24 May 2012 - 08:35 AM

Are level limits applied as well?
For example if I can only learn a skill at lv 10.
All of my work can be found on my website:

banner200x40.png

You can follow me on any of these platforms:

logo_facebook40x40.pnglogo_twitter40x40.pnglogo_youtube40x40.pnglogo_patreon40x40.pnglogo_instagram40x40.png

Go here for Bugs and Requests.
 
Want to become a beta tester for my plugins before they are released to the public?

#3 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 24 May 2012 - 08:46 AM

Not currently. Maybe I'll add it in a future version, though one would hope the skill shop in the starting town wouldn't sell the ultimate skill so this shouldn't be too much of a problem, or if it was you could just not sell that skill altogether if the player's level wasn't high enough through conditional branches. :P

#4 Darkhog

Darkhog

    Member

  • Member
  • 14 posts

Posted 18 August 2012 - 05:45 PM

Can I modify this script for my purposes? For instance I'd like to have any actor learn skill by default (as opposed to current setting when it cannot learn by default) and blacklist skills that certain people can't learn (I know how to do this and only asking for permission).

//edit: Fixed typos.

Edited by Darkhog, 18 August 2012 - 05:49 PM.


#5 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 18 August 2012 - 05:50 PM

Yes, you can modify it as long as I am credited. The script should only list members of your current party already? And actors can only learn skills through the shop that are specifically set by you so if you don't want them to learn a skill just don't put it in their notebox.

#6 Darkhog

Darkhog

    Member

  • Member
  • 14 posts

Posted 18 August 2012 - 07:57 PM

Yeah, but in case of my game, blacklist will work better as my characters can learn basically ANY skill, except few that are class- or character-specific. But as I said, it's just matter of changing few ifs and I know how to do this.

Thanks for permission, and you'll be credited for sure!

Edited by Darkhog, 18 August 2012 - 07:58 PM.


#7 Lord Bacon of Westcheddar

Lord Bacon of Westcheddar

    Member

  • Member
  • 10 posts

Posted 12 September 2012 - 04:54 AM

For those of us who may not have as much RGSS knowledge here, how might one edit the script so that, by default, all actors can learn all skills? As it stands, I've found that listing several dozen numbers in the notebox has the undesired effect of not letting an actor learn any skills. Since, for my purposes anyhow, I'm aiming for a class-less system where any actor can be customized and thus can learn any skill, it seems that editing the script so that all actors can, hypothetically, learn all skills seems to be the preferred route I'd like to take.

Thank you for your time.

#8 Caveras

Caveras

    Advanced Member

  • Member
  • 565 posts
  • RM Skill - Designer

Posted 12 September 2012 - 07:56 AM

I think you just have to give the actor the respective skill type abilities then, not the class. But I don't know how you want to achieve a classless system. You'll probably end up with the actors having a blank default class then, and if this class doesn't allow any skill types it could become a little difficult to work around this.

Hello there!

Here are some of my icon resources ยป http://www.rpgmakerv...apons-and-more/

Posted a new set on 16 June!


#9 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 12 September 2012 - 12:15 PM

For those of us who may not have as much RGSS knowledge here, how might one edit the script so that, by default, all actors can learn all skills? As it stands, I've found that listing several dozen numbers in the notebox has the undesired effect of not letting an actor learn any skills. Since, for my purposes anyhow, I'm aiming for a class-less system where any actor can be customized and thus can learn any skill, it seems that editing the script so that all actors can, hypothetically, learn all skills seems to be the preferred route I'd like to take.

Thank you for your time.



Replace this code:
def enable?(actor)
    for i in 0...actor.skills.size
	  if actor.skills[i] == @skill
	    return false
	  end
    end
    for i in 0...actor.csca_learnable_skills.size
	  unless @skill.nil?
	    if actor.csca_learnable_skills[i] == @skill.id
		  return true
	    end
	  end
    end
    return false
  end

with this code:
def enable?(actor)
    for i in 0...actor.skills.size
	  if actor.skills[i] == @skill
	    return false
	  end
    end
    return true
  end


#10 Lord Bacon of Westcheddar

Lord Bacon of Westcheddar

    Member

  • Member
  • 10 posts

Posted 12 September 2012 - 05:27 PM

Spoiler


Huzzah! Thank you!

#11 Pat

Pat

    Newbie

  • Member
  • 7 posts
  • LocationCanada
  • RM Skill - Writer

Posted 17 January 2013 - 09:30 PM

For some reason, I can't get my characters to "learn" the skills I'm selling. The script seems to work fine and I followed the instruction in it, but something is not working. I'm using a japanese sideview script (Witch I can't tell you the name because I can't read it ) and I don't know if that could cause a compatibility issue.

Shop is selling skills at the price that I set, my characters can buy it ( I'm using the modified script so that all skills can be learned by all actors) but when I go in the menu after buying my skills, the skill menu is empty. Can someone help out with this?

Thanks



#12 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 18 January 2013 - 05:43 PM

First of all, make sure you have set the actors to be able to use the skill type you're trying to sell them: If you sell an actor that can only use "Special" skills a "Magic" skill, they won't be able to see it in the skills menu.

 

If that is not the problem, please either verify that it is in fact the sideview script causing conflicts and link me to the sideview script or upload your compressed project somewhere so I can download and take a look at it.



#13 Pat

Pat

    Newbie

  • Member
  • 7 posts
  • LocationCanada
  • RM Skill - Writer

Posted 19 January 2013 - 02:08 PM

Thanks for the answer casper667. What I did is that I started a brand new project with no script aside from yours. But for some reason it still doesn't word. I know i'm not very good in scripting but your's is by far the best ans easiest to understand. I must be doing something wrong (actually, I'm almost sure I'm forgetting something)

 

In my actor's tab, in the note section I wrote: <csca_ss_skills: 3>  For test purpose I choose the skill number 3 to be learned

I also selected Add Skill type both Special and Magic in the Actors features tab

 

In skills I wrote <cscaprice: 50>   for the price of the 3rd skill. Witch is Dual Attack

 

And to finish I created a Shop with the following script call: goods = [3]
                                                                                            SceneManager.call(CSCA_Scene_Skill_Shop)

 

When I start the playtest, I talk to the shopkeeper who's selling the skill that I want for 50G, then I open my menu and go in my skill menu. I have Special and magic in there. But the skill that I purchased is not there.

 

Thanks in advance.
                                                                                            SceneManager.scene.prepare(goods)



#14 casper667

casper667

    Advanced Member

  • Member
  • 548 posts
  • RM Skill - Jack of All Trades

Posted 19 January 2013 - 05:57 PM

By default, Dual Attack's skill type is "none". Did you change that? Otherwise, skills with no skill type won't show up I believe.



#15 Pat

Pat

    Newbie

  • Member
  • 7 posts
  • LocationCanada
  • RM Skill - Writer

Posted 19 January 2013 - 08:01 PM

Casper667, you are a genius! I looked everywhere but there!

It works like a charm.

Thank you !!!



#16 HellKiteChaoS

HellKiteChaoS

    Sometimes sidekicks are the true hero.

  • Member
  • 176 posts
  • RM Skill - Jack of All Trades

Posted 20 January 2013 - 02:17 PM

Added to the new Master Script List. Let me know if I miss any other scripts.


Interested in seeing my work live? Have any questions about development? Below are links that can help you keep up with the project.

My Live stream:  http://www.twitch.tv/hellkitechaos

My Twitter:  @HellKiteChaoS

 

What I support ^.^

 

RDn36N8.png

 


#17 Amendment50

Amendment50

    Newbie

  • Member
  • 5 posts

Posted 04 August 2014 - 09:59 PM

Is there any way to set the whitelist to classes instead of actors? I would like to have some actors be able to learn a skill if they are of a certain class but not if they are of a certain other class.

 

Edit: Sorry, I guess this is a necropost. But there doesn't seem to be active discussion going on anywhere for this script so maybe someone here can help me out.


Edited by Amendment50, 05 August 2014 - 10:45 AM.


#18 TheRPGLPer

TheRPGLPer

    Advanced Member

  • Member
  • 72 posts
  • RM Skill - Designer

Posted 06 January 2015 - 03:57 PM

Is it possible that an edit to this script can be made to make the learnable skills determined by classes instead of actors?


Visit my Website to view my games & more stuff created by me:

http://www.therpglper.com

Visit my Youtube here:

http://www.youtube.com/user/TheRPGLPer

76561198021380786.png


#19 AstralGames

AstralGames

    Follow me at @JeremyP1997 on Twitter

  • Member
  • 3 posts
  • LocationScranton, PA
  • RM Skill - Game Developer

Posted 29 September 2015 - 09:00 PM

Hi, am I able to attach learning skills to items? I can do so without this script however I don't know how to limit the item to multiple characters in the same class.


19.jpg






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users