Once in a while you might want to get a resource index out of it's string name, like so:
instance_create(x, y, 'obj_item' + string(irandom_range(1, 3)));
But, resource indexes aren't strings, so that wouldn't work.
You could add indexes into an array, or have a little switch-statement, but take a bit to set up.
So let's see what else you can do about this,
Continue reading