I don't know if I'm doing it wrong or what, but I just cannot get them to work.
Here are some examples that do not work (They all had their numbers set before and these work completely fine if I replace the variable with a number) :
And here are examples where it DOES work:
Update: I got the first one to work by adding ".toString()" to the end of the variable.
Update 2: I made more progress on the second:
but it gives a syntax error for the ]
update 3: i replaced ".include?" with ".includes" and it works now!
Here are some examples that do not work (They all had their numbers set before and these work completely fine if I replace the variable with a number) :
Code:
this._params = [$gameVariables.value(1)];
this.command119();
Code:
var byte = $gameVariables.value(7)
if ($gameActors.actor(byte).hasWeapon(1))
{
$gameMessage.add("test");
}
And here are examples where it DOES work:
Code:
var Bon = $gameActors.actor(2);
var random = $gameVariables.value(1);
Bon.forceAction(random, -2);
BattleManager.forceAction(Bon);
interpreter.setWaitMode('action');
Code:
var all = $gameVariables.value(1);
$gameParty.members(6).forgetSkill(all);
Update: I got the first one to work by adding ".toString()" to the end of the variable.
Update 2: I made more progress on the second:
Code:
var partymember = $gameActors.actor( $gameVariables.value(7).toString() );
if (partymember.weapons.include?($data_weapons[1, include_equip?]))
{
$gameMessage.add("test");
}
update 3: i replaced ".include?" with ".includes" and it works now!