The RPG Maker Resource Kit

RMRK RPG Maker Creation => RPG Maker General => General Tutorials and Eventing => Topic started by: brutebasher9 on May 04, 2008, 01:36:47 AM

Title: Setting party members access methods to variables
Post by: brutebasher9 on May 04, 2008, 01:36:47 AM
Would anyone know how to go about this? I can set the variable to the character's ID, but can't seem to find a way to access party members with it.
Title: Re: Setting party members access methods to variables
Post by: A13x on May 04, 2008, 02:21:47 AM
You could try switches but i dont know if that would work for whatever ur doin...
Title: Re: Setting party members access methods to variables
Post by: Leventhan on May 04, 2008, 08:48:26 AM
Can I first know what you might want to use it for?
To remove or add party members according to variables or something similar?
Title: Re: Setting party members access methods to variables
Post by: brutebasher9 on May 04, 2008, 07:56:49 PM
I wanted to use it to avoid checking all 13 characters eight times, since i'm using this along with Modern Algebra's Multiple Parties v1.0. There are two parties you can use, and the variables are set accordingly. The problems are that there I can't find a way to switch characters on variables, or use text commands to say their names on variables. For example, \n[1] would still be Ralph, but \n[\v[17]] would result in a script error. (variables 17 through 24 are being used for parties, 17 being Party1 Char1 and 21 being Party2 Char1.)
Title: Re: Setting party members access methods to variables
Post by: CruzCoda on May 09, 2008, 01:35:48 PM
A couple things to try (not sure if this will work).

Try just using \v[party member var] and see if that produces a name.

If not, the other option would be to manually set variables to the party member names. For instance:

Ralph Joins the party
Var 12 = String 'Ralph'

etc... for all party members. Then, when you need them, just pull up that specific variable for when you need to use their name. It's a bit more complicated, and requires a little extra work, but should solve the problem when dealing with message boxes and such.
Title: Re: Setting party members access methods to variables
Post by: modern algebra on May 14, 2008, 11:28:50 PM
Quote from: brutebasher9 on May 04, 2008, 07:56:49 PM
I wanted to use it to avoid checking all 13 characters eight times, since i'm using this along with Modern Algebra's Multiple Parties v1.0. There are two parties you can use, and the variables are set accordingly. The problems are that there I can't find a way to switch characters on variables, or use text commands to say their names on variables. For example, \n[1] would still be Ralph, but \n[\v[17]] would result in a script error. (variables 17 through 24 are being used for parties, 17 being Party1 Char1 and 21 being Party2 Char1.)

\n[\v[17]] should not produce an error unless the value of Variable 17 is out of range (a.k.a. less than 1 or greater than max). So, maybe if you can reproduce the error and show me the error message, I might be able to help diagnose the problem. Also, try discovering the value of \v[17] before trying to use \n[\v[17]], as maybe it's not being set properly.