Axe Software Forums
  Quest Developer Forum
  Variables in libraries...


Author Topic:   Variables in libraries...
Computer Whizz posted 28-07-2001 23:12 GMT     
Now I have 3 define variables.... 2 in one library, 1 in the other!

library 1...
define variable <no1>
type string
value <number 1>
display <>
end define

define variable <no2>
type numeric
value <0>
diplay <>
end define

library 2...

define variable <no3>
type numeric
value <1>
display <>
end define

now when I go into the game debug window in quest 3.0 it comes out with:
numeric
no2 = 0

string
no3 = number 1

and no1 has vanished

now when I remove no1 variable, for some reason variable no2 is undefined and no3 is in with the numerics! All these are in the !addto game bit of the library...

--CW

Alex posted 01-09-2001 18:03 GMT          
Sorry for the late reply. Fortunately I wrote this on a scrap of paper which I just found and I've nailed zee bug. Basically Quest was getting confused where the "define game" block ended and so it ended up trying to stick more status variable blocks inside ones that were included earlier, which is why things went a bit screwy.