Hi, is there a list of some commonly used script calls? Or if not could someone give me a few, things like getting actors TP, MP or HP values. Or some of the script calls that you all use.
MZ Script calls
Javascript/Plugin Support$gameVariables.value(varID) gives you the game variable assigned to varID. Useful if you want to use them to store something like an object.
Script calls are handled by the interpreter of the calling event. You can access any character on the current map with it. Player and self have the special IDs of -1 and 0 respectively. Examples.
this.character(-1) gives you the same thing as $gamePlayer. this.character(0) gives you the event that you are executing the script call from.
$gameMap gives you the current map data.
console.log() remains the most useful debugging tool and sometimes calling it from a script can be useful.
Most script calls have to do something specific so you are generally just looking through the default js files to see exactly what you need.
Script calls are handled by the interpreter of the calling event. You can access any character on the current map with it. Player and self have the special IDs of -1 and 0 respectively. Examples.
this.character(-1) gives you the same thing as $gamePlayer. this.character(0) gives you the event that you are executing the script call from.
$gameMap gives you the current map data.
console.log() remains the most useful debugging tool and sometimes calling it from a script can be useful.
Most script calls have to do something specific so you are generally just looking through the default js files to see exactly what you need.
Original thread: https://forums.rpgmakerweb.com/threads/script-calls.126753/