- Joined
- Oct 19, 2017
- Messages
- 61
- Reaction score
- 24
- First Language
- English
- Primarily Uses
- RMMV
$gameVariables
doesn't have a property _value
. Where did you find that?return $gameVariables._data[id];
As far as I know$gameVariables
doesn't have a property_value
. Where did you find that?
Try instead accessing:JavaScript:return $gameVariables._data[id];
I would like to correct this assumption. Yes, it is interpreted language. But the program only gets even worse if (and is likely to be) used in the script call box, which in itself is an eval function (an expensive one). However, if you only do it once, shouldn't be a problem (damage formula also uses eval). It only becomes problematic if you're using the script call within the game loop. But if you're using it as a "native code" (not using eval), shouldn't be worry that much.Never forget that the computer has to interpret that code (because javascript is an interpreted language, not a compiled one), and even if one such function is not much, it does add up when using those functions thousands of times.