Yanfly's class level unlock

steven197238

Black Mage
Member
Joined
Sep 16, 2014
Messages
10
Reaction score
0
First Language
english
Primarily Uses
N/A
This will sound major noobish, how do you set a class for

<level unlock requirements>
   class x: level y
   class x: level y
</level unlock requirements>

yanfly told you that to use this to unlock a class when these requirements(bold).

how do you set it to the class to unlock?
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
I've moved this thread to RGSSx Script Support. Please be sure to post your threads in the correct forum next time. Thank you.


Can you please add a link to the script so people can check easily? (don't copy and paste the script into your post - just a link to its original site/forum post/blog article)
 

Rad

Villager
Member
Joined
Aug 5, 2014
Messages
12
Reaction score
1
First Language
English
You should leave a link to the script you want help with, I have never read this script but wouldn't it be replace x with class number and replace y with class level you want ?

Code:
<level unlock requirements>   class 1: level 2   class 3: level 99</level unlock requirements>
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
The way I read it, if you want say class 5 in the database to require class 1 to be level 3, you would enter

<level unlock requirements>
   class 1: level 3
</level unlock requirements>

in the notetag for class 5. Everything in the group has to be met before the class opens up.

I would try to get something that small working first and see if it works for you. Maybe add a slime battle that gives you 500 EXP and see if class 5 unlocks after that fight. If so, you have the notetag and script working.
 

steven197238

Black Mage
Member
Joined
Sep 16, 2014
Messages
10
Reaction score
0
First Language
english
Primarily Uses
N/A
Yeah i get the code i already showed, i just need somebody  to demonstrate how to set it to the secondary class
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
The secondary class? That's tougher. I think you need a script for subclasses first, and the unlock is an all or nothing, it is either it unlocks for both the primary and subclass, or not at all. Is that what you are trying to do, set it so that the subclass unlocks at a specific point? If so, it will have to be a subclass only (which is another script), else it will unlock for both primary and subclass at the same time.
 
Last edited by a moderator:

steven197238

Black Mage
Member
Joined
Sep 16, 2014
Messages
10
Reaction score
0
First Language
english
Primarily Uses
N/A
Example: i already know how to set requirements for the secondary class put i actually need to know how to make it so

the class reads the requirements 
 

steven197238

Black Mage
Member
Joined
Sep 16, 2014
Messages
10
Reaction score
0
First Language
english
Primarily Uses
N/A
The secondary class? That's tougher. I think you need a script for subclasses first, and the unlock is an all or nothing, it is either it unlocks for both the primary and subclass, or not at all, though you can set some classes to be primary or subclass only with the tag

<primary only>

or

<subclass only>

Just know that subclasses do not gain experience under Yanfly's default scripts, so if you have something as subclass only and that subclass is an unlock requirement, that class will never unlock.
you can already make subclasses in the core script (i already have it).
 

steven197238

Black Mage
Member
Joined
Sep 16, 2014
Messages
10
Reaction score
0
First Language
english
Primarily Uses
N/A
i re-read the quote i was talking secondary as the class i want it to unlock
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
Example: i already know how to set requirements for the secondary class put i actually need to know how to make it so

the class reads the requirements 
Not sure what you mean...if it is set, it automatically reads it in the system when you put it in the notetag. Just make sure to start a new game once you put in the notetag.

Edit: Your post came while I was typing...for the secondary to unlock, it has to be a secondary only class. As far as I know, no other way will work.
 
Last edited by a moderator:

steven197238

Black Mage
Member
Joined
Sep 16, 2014
Messages
10
Reaction score
0
First Language
english
Primarily Uses
N/A
Not sure what you mean...if it is set, it automatically reads it in the system when you put it in the notetag. Just make sure to start a new game once you put in the notetag.

Edit: Your post came while I was typing...for the secondary to unlock, it has to be a secondary only class. As far as I know, no other way will work.
i kind-of get what you're saying now but i only want one class to be a level to unlock another.

not all classes. i don't know what to put in the notetag so only class:a, will unlock until class:b is level 2 (what is in bold i already know)
 

steven197238

Black Mage
Member
Joined
Sep 16, 2014
Messages
10
Reaction score
0
First Language
english
Primarily Uses
N/A
can anyone reply with the edited notetag  :(
 
Last edited by a moderator:

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,522
Reaction score
14,255
First Language
English
Primarily Uses
RMVXA
All you have to do is put that notetag in the notes box for the class you want it to apply to, as it will only unlock the class with the notetag. If there is no notetag, the class is available from the beginning. Just make sure to change class x: level y to where x is the id of the class, and y is the level you want that class to be before the class unlocks.
 

steven197238

Black Mage
Member
Joined
Sep 16, 2014
Messages
10
Reaction score
0
First Language
english
Primarily Uses
N/A
All you have to do is put that notetag in the notes box for the class you want it to apply to, as it will only unlock the class with the notetag. If there is no notetag, the class is available from the beginning. Just make sure to change class x: level y to where x is the id of the class, and y is the level you want that class to be before the class unlocks.
 can you show me how it looks like when you apply it, so we can solve this
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,355
Reaction score
7,669
First Language
German
Primarily Uses
RMMV
steven197238, please avoid double posting, as it is against the forum rules. You can review our forum rules here. Thank you.


If you have something to add and your own post is the last post in a topic, simply edit that post.
 

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

Latest Threads

Latest Profile Posts

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:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,853
Messages
1,016,990
Members
137,562
Latest member
tamedeathman
Top