This is the code:
These are the screenshots:
Expected: When no weapon is equipped, jump to label end. When any weapon is equipped, script logs "Hello?" (which means it should be jumping to labels?), the current variable number, and ends at 21
Result: When no weapon is equipped, jumps to label end. When any weapon is equipped, script logs 'Hello?" one time (and does not jump to 1 even when the weapon with id 1 is equipped) and then infinitely increases and logs the variable:
Update: The title is misleading. It does actually update. The issue seems to be that the jump to label in the script isnt working.
Code:
var partymember = $gameActors.actor( $gameVariables.value(7).toString() );
var num = $gameVariables.value(10);
if (partymember.weapons().includes($dataWeapons[num]))
{this._params = [num];
this.command119();
console.log("hello?");
}
console.log(num)
These are the screenshots:
Expected: When no weapon is equipped, jump to label end. When any weapon is equipped, script logs "Hello?" (which means it should be jumping to labels?), the current variable number, and ends at 21
Result: When no weapon is equipped, jumps to label end. When any weapon is equipped, script logs 'Hello?" one time (and does not jump to 1 even when the weapon with id 1 is equipped) and then infinitely increases and logs the variable:
Update: The title is misleading. It does actually update. The issue seems to be that the jump to label in the script isnt working.