@DarkSpectre
I mean your actual code still has :, which it shouldnt have. Your script call shouldnt have any : in it.
If you copy pasted from the editor to your post, your post should only have one : per line (from the UI, the leftmost : ), but your post have two : per line on the 2nd,3rd,5th,6th lines... Which means your actual code has : in it.
So you should delete those extra : (the second ones) from the script call in your editor because they would indeed cause errors. A day ago, somebody made that same mistake and we ended up with 2 pages of post before we even realized that it was all because of that simple thing...
As for the error, please test the game with console on, and see which code/line the error points to. Do this after you remove the extra : though.
Also, calling ._data[id] isnt a good idea because if you do that, the auto-initialization being done by the .value(id) function wont kick in, so you might end up using variables that arent initialized with a value yet.
I suggest using $gameVariables.value(id) instead of handling the ._data array directly.
Your $dataItems call might also have a problem but Im not sure of the correct call for that right now.