hey folks.
So I managed to type out a project with four or five thousand lines of code before learning that you could have multiple source files. Awesome. Anyways, I've been messing around with global variables while I break the project into multiple source files, using
(as per what I've gathered from forum scavenging) to do so. The problem is that my source files can't seem to find global variable declared in other source files (the fight engine can't find the structure 'turn' when called). Are global variables incapable of being seen in other source files, or am I not declaring my integers hard enough?
--I can just define turn as a 1-dimensional array to solve the spanning problem, but I cant seem to make for loops like this work
for turn(1)=1 to 4
string$="Get it together"
if turn(1)=3 then string$="Phone is ringing, ohmygod."
next turn(1)
Thx for the help,
Tails
edit - i know i could use
for a=1 to 4
turn(1)=a
string$="Get it together"
if turn(1)=3 then string$="Phone is ringing, ohmygod."
next a
, but is there any way around that?