PROTEUS'S PROFILE
Proteus
50
Search
Filter
Class levels and skills (VX Ace)
Hi everybody! I have a question. So I know there are a couple scripts out there for VXA that allow for job levels (or class levels if you will). And I'm familiar with YanFly's script. But what I'd like to know is it possible to create a system where the characters skills based on their job levels? It might be possible to do it through eventing and just checking a variable that holds the job level, but I'd rather overhaul the skill learning system.
You could make it so you have to be a Lvl 5 Monk AND a Lvl 5 White Mage to learn a group healing spell, for example. Also the player could gain levels independent of the class. Any thoughts on this?
You could make it so you have to be a Lvl 5 Monk AND a Lvl 5 White Mage to learn a group healing spell, for example. Also the player could gain levels independent of the class. Any thoughts on this?
Creating New Actor Constants
Okay, thank you both! I asked someone else about this too, and they said the same thing, to use the attr_accessor function. So I guess that corroborates it! I've added it to my code (trying to make an item run pure code) and it hasn't given me an error for the "karma" stat yet. So it must be working. :)
Creating New Actor Constants
Well let me first say this is being coded on VX Ace. And that's basically what I'm saying I want to do. I want to use a variable to store a value each actor has, then reference it elsewhere. My question is how can I do that?
Could I do:
Or something like that?
Could I do:
class Game_Actor
def karma
@karma = {}
end
end
Or something like that?
Creating New Actor Constants
Gentlemen! (Also ladies!) Countrymen (also country-ladies...lasses...w/e)! Scripters and the like! I am...in need!
My question is simple. How.....do I give the actors a brand new constant? You know how @level is a constant? And @hp, etc. And how you can reference these numbers in script formulas?
How do I create a new one and assign it to all actors? Let's say, for example, I want to create a variable called karma. So that later on I could make a script that references actor.karma, so it would also get the number for that particular actor.
Or in battle I could script an healing item that references "target.karma", or something like that.
How would I do create such a constant? I've tried and tried and can't seem to figure it out. It should be so simple, but it's not. Apparently... :/
My question is simple. How.....do I give the actors a brand new constant? You know how @level is a constant? And @hp, etc. And how you can reference these numbers in script formulas?
How do I create a new one and assign it to all actors? Let's say, for example, I want to create a variable called karma. So that later on I could make a script that references actor.karma, so it would also get the number for that particular actor.
Or in battle I could script an healing item that references "target.karma", or something like that.
How would I do create such a constant? I've tried and tried and can't seem to figure it out. It should be so simple, but it's not. Apparently... :/













