Heyo. Does MV support the use of enums in script? I've tried doing a piece of code that I believe should work, but I'm getting an error.
var terrainCostEnum = {0: 0.5, 1: 0, 2: 1, 3: 1.25, 4: 1.5, 5: 1.75, 6: 2, 7: 10};
var v = terrainCostEnum.3;
$gameMessage.add(v);
The error is coming from the middle line. MV doesn't seem to recognize the "terrainCostEnum.3" method of accessing a value from the enum. Does anyone know how I can make something like this work?
var terrainCostEnum = {0: 0.5, 1: 0, 2: 1, 3: 1.25, 4: 1.5, 5: 1.75, 6: 2, 7: 10};
var v = terrainCostEnum.3;
$gameMessage.add(v);
The error is coming from the middle line. MV doesn't seem to recognize the "terrainCostEnum.3" method of accessing a value from the enum. Does anyone know how I can make something like this work?