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 Profile Posts

1653529725808.png
>Wake up in the night
>Can't sleep
>Draw little freak
>Come up with pancake based puns for attacks
>Back to bed
UHHHHH. What is this and how did someone find my game on here? 1653527395160.png
ScreenShot_5_25_2022_7_37_13.png

my game has distinct areas where travel through what are known as "battle stations" these are more or less areas to explore and fight. occasionally, you'll stumble across secret rooms with sidequests ready to be taken. this area is in the high school attic of all places... but how do ya get there is the question.
Redoing my intro scene for the 10 millionth time is pain
So this flat Earther named Mike Hughes build his own rocket to prove that the Earth was flat. But on liftoff he still had the ladder he climbed up to the rocket laying against it. Needless to say things didn't go as planned.

Forum statistics

Threads
122,125
Messages
1,146,704
Members
160,411
Latest member
WillianAxe
Top