I have a little problem with exporting ints. I have made up an int called "int distract" and I have put the commando "import int distract" in the room script but when I put the "export distract" at the end of the Global Script the programm gives me this error:
Error (line 1070): cannot export undefined symbol 'distract'
I'm using this in Prosikto's MI2 Template in AGS version 2.62. What is actually wrong? The manual tells clearly that I should put the "export (intname)" at the END of the Global Script but it's still doesn't work.
Are you sure you have defined the variable ("int distract;") at the very top of the global script, outside of any functions? You cannot export/import local variables.
Thanks for the help, I thought that the "int distract;" would be set in section game start. Ok, it's solved! :D :D