Hello,
Could you please help me with JS and explain to me why $gameVariables.value(20)._hp = 4000; works but not
$gameVariables.value(20).gainHp(4000); ?
Should I do something like this ?
var tmpActor = new Actor($gameVariables.value(20).actorid);
tmpActor.gainHp(4000);
Actor is taken in the formula box of the item. It's an object (when I display \V[20] I got [Object object]) and called in the common event :
Many many thanks !
Could you please help me with JS and explain to me why $gameVariables.value(20)._hp = 4000; works but not
$gameVariables.value(20).gainHp(4000); ?
Should I do something like this ?
var tmpActor = new Actor($gameVariables.value(20).actorid);
tmpActor.gainHp(4000);
Actor is taken in the formula box of the item. It's an object (when I display \V[20] I got [Object object]) and called in the common event :
Many many thanks !