variables and methods available to entire party?

MusicTF

Soundtrack Composer
Veteran
Joined
Mar 30, 2015
Messages
102
Reaction score
8
First Language
English
Primarily Uses
My game has a job system, and you unlock new jobs by using skills in your currently unlocked jobs (each skill adds a predetermined amount to a variable for that job).  There need to be variables for how unlocked a job is, but my question is where would I put said variables (I'm actually using a Hash, like the system for exp gain in each class).  The whole party unlocks the jobs together, so if one party member unlocks the job, they can all use it.  Putting the variable in $Game_Actor won't work, because then each actor would get it's own job unlock progression.  I was going to put it in $Game_Actors, but I don't know how to refer to instances of $Game_Actors.  Is there just one instance?  multiple?  How would I change variables inside it from another class?  is there a better place to put variables that concern the whole party?

Thanks in advance!
 

Sixth

Veteran
Veteran
Joined
Jul 4, 2014
Messages
2,162
Reaction score
822
First Language
Hungarian
Primarily Uses
RMVXA
There is a whole class for that, it is called 'Game_Party'.


You can create your methods/variables for your job system there.


When you are done with your methods/public variables, you can reference them from any other class by using:

Code:
$game_party.your_method_name(args)
 

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

Latest Threads

Latest Posts

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,848
Messages
1,016,974
Members
137,562
Latest member
visploo100
Top