Maldra

Veteran
Veteran
Joined
May 31, 2017
Messages
90
Reaction score
10
First Language
English
Primarily Uses
RMMV
I'm having an issue with this plugin due to an encounter in the game that forces out all party members for a temporary one. The temporary character is then defeated, bringing the party limit gauge to 0. What I'm trying to accomplish is to store the value of the party limit gauge as a variable, and then set the party limit gauge back to what it was before that happened. I was able to store the party limit gauge as a variable, but can't seem to assign that variable back to the party limit gauge. Can someone help?

Thanks in advance!
 

ThreeSixNine

Veteran
Veteran
Joined
Jan 22, 2019
Messages
469
Reaction score
387
First Language
English
Primarily Uses
RMMV
How did you store it to a variable?
 

Maldra

Veteran
Veteran
Joined
May 31, 2017
Messages
90
Reaction score
10
First Language
English
Primarily Uses
RMMV
control variables.png
Like this. Storing the value into the variable worked just fine, but I tried doing a script referencing the same thing and making it equal to the variable but I couldn't get it working. I tried this:

$gameParty.partyLimitGauge() = $gameVariables.value(58)

That didn't seem to work. Not sure what else to do at this point..
 

ThreeSixNine

Veteran
Veteran
Joined
Jan 22, 2019
Messages
469
Reaction score
387
First Language
English
Primarily Uses
RMMV
View attachment 198675
Like this. Storing the value into the variable worked just fine, but I tried doing a script referencing the same thing and making it equal to the variable but I couldn't get it working. I tried this:

$gameParty.partyLimitGauge() = $gameVariables.value(58)

That didn't seem to work. Not sure what else to do at this point..
Try:
JavaScript:
$gameParty.setPartyLimitGauge($gameVariables.value(58));
 

Maldra

Veteran
Veteran
Joined
May 31, 2017
Messages
90
Reaction score
10
First Language
English
Primarily Uses
RMMV
Wow, that worked! I tried something very similar to that earlier too, but it didn't work at the time. Maybe it was the missing semi colon! Anyways, thank you!
 

Latest Threads

Latest Posts

Latest Profile Posts

It's not about your writing, it's about your mapping.
Newbie, please be gentle
reworkMZ.png
To keep myself motivated to make the MZ SF tiles normal and usable modern tiles I like to make tiny maps and toggle between the options :3
Character selection in games be like
Special Tractor Operation! :kaojoy:

Forum statistics

Threads
122,083
Messages
1,146,357
Members
160,371
Latest member
daodum168
Top