that worked, thanks! there were a couple of other bugs like that which were easy to fix, probably because of the switch from .wdl to .c. but there's one glitch that i have no idea, when i try to run the script it says:

error in 'C:/program files/gstudio7/include/default.c' line 191: syntax error: can't convert GETP VALUE: FIXED::FIXED.
<var mode = video_mode;>

in my script in the variables at the top of the code right after the includes i have:

var video_screen = 1;
var video_mode = 9;
var video_depth = 16;

any ideas?