Trying to code something akin to Limbus Company's Event Checks, where each party member has varying sin stats. These stats being used for many things, though mainly for my issue it's when there are the event checks. You can choose from your current party members, and it uses their stats in order to see if you succeed the event check and get a reward or punishment.
I thought I was managing to get it done correctly, but nope! It worked up until I tried to set it to show me the variable and use the variable that is stored. It ended up showing a 0 and seemingly using a 0 in the check. I checked the variable afterwards in-game and it showed the correct variable.
I am unsure of what might be causing this, but from what I've found it might be that the variable isn't updating until AFTER the full battle event? Any ideas on how to fix it?
This is the code for reference
Plugins I am using are all Visuastella, Tier 0 and Tier 1.
Edit: Since I think it might be useful to add, the way the variables are decided are via Common Event. The code calls for a Common Event equaling the variable of a party member, the common event setting the stat variables.
I thought I was managing to get it done correctly, but nope! It worked up until I tried to set it to show me the variable and use the variable that is stored. It ended up showing a 0 and seemingly using a 0 in the check. I checked the variable afterwards in-game and it showed the correct variable.
I am unsure of what might be causing this, but from what I've found it might be that the variable isn't updating until AFTER the full battle event? Any ideas on how to fix it?
This is the code for reference
Code:
◆Plugin Command:VisuMZ_0_CoreEngine, Text Popup: Show Text
: :Text = "It's blood is boiling."
◆Label:Return
◆Show Choices:\P[1], \P[2], \P[3], \P[4], \P[5] (Window, Left, #1, -)
:When \P[1]
◆Control Variables:#0001 Party Leader = Actor ID of party member #1
◆Control Variables:#0013 Chosen Canvas = Actor ID of party member #1
◆Script:$gameTemp.reserveCommonEvent($gameVariables.value(1))
◆
:When \P[2]
◆Control Variables:#0002 Second Position = Actor ID of party member #2
◆Control Variables:#0013 Chosen Canvas = Actor ID of party member #2
◆Script:$gameTemp.reserveCommonEvent($gameVariables.value(2))
◆
:When \P[3]
◆Control Variables:#0003 Third Position = Actor ID of party member #3
◆Control Variables:#0013 Chosen Canvas = Actor ID of party member #3
◆Script:$gameTemp.reserveCommonEvent($gameVariables.value(3))
◆
:When \P[4]
◆Control Variables:#0004 Fourth Position = Actor ID of party member #4
◆Control Variables:#0013 Chosen Canvas = Actor ID of party member #4
◆Script:$gameTemp.reserveCommonEvent($gameVariables.value(4))
◆
:When \P[5]
◆Control Variables:#0005 Fifth Posiion = Actor ID of party member #5
◆Control Variables:#0013 Chosen Canvas = Actor ID of party member #5
◆Script:$gameTemp.reserveCommonEvent($gameVariables.value(5))
◆
:End
◆Text:None, None, Window, Middle
: :Threshold - \c[18] 10
: :\c[0]
: :Predicted - \v[6]
◆Text:None, None, Window, Bottom
: :Are you Sure?
◆Show Choices:Proceed., Rethink. (Window, Right, #1, #2)
:When Proceed.
◆If:Wrath > 10
◆Text:None, None, Window, Bottom
: :Check Passed!
◆Plugin Command:VisuMZ_1_BattleCore, BTLOG: Add Text
: :Text = Burning is weakened
: :Copy to Combat Log? = true
: :Combat Log Icon = 87
◆Change Enemy HP:#1 Burning, - 20
◆
:Else
◆Text:None, None, Window, Bottom
: :Check Failed!
◆Change HP:{Chosen Canvas}, - 25
◆
:End
◆
:When Rethink.
◆Jump to Label:Return
◆
:End
Plugins I am using are all Visuastella, Tier 0 and Tier 1.
Edit: Since I think it might be useful to add, the way the variables are decided are via Common Event. The code calls for a Common Event equaling the variable of a party member, the common event setting the stat variables.