The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: neroakira on October 23, 2011, 11:23:32 AM

Title: (solved)I need a specific script please
Post by: neroakira on October 23, 2011, 11:23:32 AM
I would like to request a script that enables me too check for the existing class of the character(main only) and then provide options such as subclasses for that existing class, impossible or just very hard?

Example: Walk up to the sub-class trainer, click action button, then he says "i will train you in a sub-class,Runs check for
current class, provides sub-class choices according to current class.

deep example: say i was a mage, i had a sub-class set up as Battle mage, i want the script to check for mage then deliver
the option battle mage.
Title: Re: (vx)(request)I need a specific script please
Post by: thanatos2k1 on October 23, 2011, 02:32:31 PM
I'm pretty sure you could set that up in events rather than a script.
Title: Re: (vx)(request)I need a specific script please
Post by: neroakira on November 04, 2011, 07:13:08 PM
i've attempted it many times since reading the reply, i cannot and im not very good at scripting, btw, i did try before posting here.
Title: Re: (vx)(request)I need a specific script please
Post by: SirJackRex on November 04, 2011, 07:49:49 PM
The event would work like this:
First off you need a variable (and in this example I'll call it maincclass) for when the player initially chooses his or her class (the main class), so for example if you have three different classes: Wizard, Knight, Thief each class will be set to a different maincclass value. When you're character is offered sub-classes, the maincclass variable will be checked for these values:
1 = Wizard
2 = Knight
3 = Thief
When the variable equals 1, the sub-classes for Wizard will be offered, etc.

Now here's how you do it (it's very simple):
When your choose your main class, have the next command be:
Control Variables: [maincclass] = X (The = means you told it to "Set" the variable to the value X, where X is the variable equal to the class)

Now we're going to have the sub-class teacher check for the main class:
Conditional Branch: Variable [maincclass] == X (The == means told it to check that maincclass is "Equal to" "Constant" X)

After the conditional branch you'll just offer the sub-classes based on the value of maincclass. You can extend this to as many classes as you want by just giving another unique number to each main class that you want. Just remember that each main class number needs to be unique and it needs to be Set to it, not Add, Sub, Mul, Div, Mod.
Title: Re: (vx)(request)I need a specific script please
Post by: neroakira on November 05, 2011, 06:59:02 AM
oh lol, thnx man, i didn't think about that sorry for the trouble then