A few things to unpack here
these dont actually do anything. when you make a JS variable, it doesnt correlate to a gameVariable and it only exists within the scope its called. Youre creating 2 new variables and doing nothing with them between both of those tags
you cant make a js variable by that name either. many of those characters arent allowed to be used in a variable identifier because theyre used in js for other things. <<Aska>>\i[320]\c[30]Delusion\c[0] when being used as a value is going to cause an error.
My question is this. if that actor is the only one to use TP, and their TP is supposed to be their mood, why have a variable for it? why not just directly use their tp values wherever you would use the delusion variable?
if you keep using the variable though, youd want that state to sync the gameVariable with the actor's TP, not a js variable. it sounds like the important ones would be battle start, after skill use, after being targetted, and turn end
these dont actually do anything. when you make a JS variable, it doesnt correlate to a gameVariable and it only exists within the scope its called. Youre creating 2 new variables and doing nothing with them between both of those tags
you cant make a js variable by that name either. many of those characters arent allowed to be used in a variable identifier because theyre used in js for other things. <<Aska>>\i[320]\c[30]Delusion\c[0] when being used as a value is going to cause an error.
when you run that, press f8 beforehand and check the console. put some text boxes to display those variables between each line there and see what values those actually produce. im fairly certain that first and fourth lines should produce an error for the same reason as above, so by the time the change tp command is ran it wont do anything as itll add 0 to their tp. variables 6 and 7 being named that might be fine, but its also just their names. you could have just named them Delusion and Acceptance and it would make zero difference. the names are for your sake, unless you have some plugin to read that to do some function
My question is this. if that actor is the only one to use TP, and their TP is supposed to be their mood, why have a variable for it? why not just directly use their tp values wherever you would use the delusion variable?
if you keep using the variable though, youd want that state to sync the gameVariable with the actor's TP, not a js variable. it sounds like the important ones would be battle start, after skill use, after being targetted, and turn end
Code:
<Custom battle effect>
$gameVariables.setValue(86, user.tp);
</Custom battle effect>
<Custom Conclude effect>
$gameVariables.setValue(86, user.tp);
</Custom Conclude effect>
<Custom Deselect effect>
$gameVariables.setValue(86, target.tp);
</Custom Deselect effect>
<custom regenerate effect>
$gameVariables.setValue(86, user.tp);
</custom regenerate effect>