RMMZ forward not define

Status
Not open for further replies.

Luckysince97

Veteran
Veteran
Joined
Feb 6, 2018
Messages
102
Reaction score
27
First Language
French
Primarily Uses
RMMZ
Ok let me explain in short what im trying to do

first i want my protagonist to start in solo
then i want my protagonist to reach party member chronologicaly

so here is the problem i change the default party member to 5
when i put my system starting party to 5 and my 5 party member are in the party iu got no error but when i start a figth in solo with 2 member 3 or 4, i got that error forward not define

is there a way to tell the system default starting party size is 1 but the it will become 5 so that i wont have that error if i play chapter 1 in solomode...

 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
How did you add or remove party members? And how did you define the starting party?

A lot of people have problems because they don't know how to do that correctly.

And by the way - it would be a lot better if you simply gave a screenshot of the console when the error messages appear. Videos are in 95% of all cases a very bad way to give info for a lot of reasons, and most people (including me) won't even bother to start the video in such cases.
 

Luckysince97

Veteran
Veteran
Joined
Feb 6, 2018
Messages
102
Reaction score
27
First Language
French
Primarily Uses
RMMZ
ty but in the end with a lot of try n test i finaly discover that i didnt need to use script call or plugin command

maybe i miss read or maybe it was not explained correctly, but now with the default method from degica
evrything look like working as intended, at first i was using

◆Script:Game_Party.prototype.maxBattleMembers = function() {
: : return 1;
: :};

it was working as in the vid, then i use the new plugin command change max/party to 1 then 2 to 5
again i was clog to one member only even when changing all param...

so i test it out with default add member and it work! maybe i was searching to far, or maybe they corected something in the code anyway big ty for taking the time to look at it

the $gameParty.battleMembers() mentionned in the plugin doest look like working either, maybe it just me not knowing how to use it, but that the end of that now i could jump on other thing...been there for 3 week so im releive!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,434
Reaction score
7,713
First Language
German
Primarily Uses
RMMV
you don't need to limit the maxBattlemembers to have a single-actor-battle. You can get that by having a single actor in the party.
Your problem is most likely that you didn't remove the actors from the default starting party. That party is defined in the SYSTEM tab of the database and contains three or four actors by default. Remove them there and they won't appear in battle.

And your way of changing the value is rather bad and can cause a lot of problems, because it overrides the function itself but doesn't save anything of that change and will cause problems with several plugins.

Make a plugin file with the following content:
Code:
Game_Party.prototype.maxBattleMembers = function() {
: : return $gameVariables.value(13);
: :};
Change the number 13 to whatever Variable you want to use, and name that variable as maxBattlemembers in the editor to prevent yourself from accidentally using it.
Install the plugin in your project.
Then make an autorun event at the start of the game that sets the variable to 1.

And whenever you change the variable number, the number of battlemembers will change with it.
just make sure you don't do that during battle.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
13,528
Reaction score
14,261
First Language
English
Primarily Uses
RMVXA

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

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

Latest Threads

Latest Profile Posts

Don't forget, aspiring writers: Personality isn't what your characters do, it is WHY they do it.
Hello! I would like to know if there are any pluggings or any way to customize how battles look?
I was thinking that when you start the battle for it to appear the eyes of your characters and opponents sorta like Ace Attorney.
Sadly I don't know how that would be possible so I would be needing help! If you can help me in any way I would really apreciate it!
The biggest debate we need to complete on which is better, Waffles or Pancakes?
rux
How is it going? :D
Day 9 of giveaways! 8 prizes today :D

Forum statistics

Threads
106,050
Messages
1,018,548
Members
137,835
Latest member
yetisteven
Top