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
407
Reaction score
333
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
407
Reaction score
333
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

After the initial success with one event, I set up four different events on the same map to detect who is in which slot in my current party, and fortunately it managed to work as intended, with the events changing image to match the party members even as I swapped their positions around in formation. This will be a great tool for immersive scene design.
Finally finished the first hand-drawn map! It took me a week, but I'm so proud!
Actual line of code I just had to write for a plugin:

return Object.keys(this._shopStock).map(key => key.split(",")).map(element => element.map(value => Number(value))).filter(key => key[0] === mapId && key[1] === eventId);

Forum statistics

Threads
118,447
Messages
1,116,053
Members
155,418
Latest member
Onehitwonder
Top