Ok now that i've removed the return keywork and moved the import keyword from my script header to my room script it works great. But why didn't it before, i thought that you should put the import keyword on the script header if you want all your scripts to have access to it, it says so in the manual. I need this variable in all my rooms, does this mean i have to import int hour in every room i've got?
(By the way i've moved my game to AGS 3.0, it's great, the only problem i noticed is that sometimes it doesn't cut/paste a part of your script if you use right click and that i couldn't paste a code i had stored in a text folder like i used to do, anyway)
(By the way i've moved my game to AGS 3.0, it's great, the only problem i noticed is that sometimes it doesn't cut/paste a part of your script if you use right click and that i couldn't paste a code i had stored in a text folder like i used to do, anyway)