posted 03-06-2003 12:48 BST
Hi again,D' Oh! The 'penny dropped' as to what you meant just after posting my last reply, you are quite correct, the inbuilt QDK 'takeable / action' script won't work if you use typelib.qlb This is because my typelib provides a default take action for regular objects, so any script will automatically be overridden.
This isn't actually a problem, once you realise that to alter the library's default behaviour you just have to provide an alternative take action rather than specify a take script. (basically you have to write exactly the same code, but in a different place.)
This is down to the way Quest supports inheritance, but I'll avoid the temptation of trying to explain O.O.P. in the forum :-).
Anyways, here's a cut n' paste example of using an 'action' to override the library code, hope this solves your problem.
quote:
' "TEST"
' Created with QDK Pro 3.12!include <Typelib.qlb>
define game <TEST>
asl-version <311>
start <start>
game author <MaDbRiT>
game version <.001>
game copyright <© Al Bampton>
game info <Created with QDK Pro 3.12>
end define
define synonyms
end define
define room <start>
alias <only room>
prefix <the>
define object <widget>
type <TLTobject>
action <take> msg <use an action to override the library!>
end define
end define
define text <intro>
end define
define text <win>
end define
define text <lose>
end define