!library
!asl-version <350>
!name <The Backpack>
!version <1.0>
!author <Francis Stokes>
!
! This is to give a storage option
! to a game.....its really for my game
! but i made it into a library so people
! can use it if they want.
addto game
'=========================================
'= The backpack!!!
'=========================================
define room <dummy.backpack>
look <How can you be inside your own backpack?!?!>
end define
'=========================================
'= The commands!!!!!
'=========================================
command <put #@b.p.in# in backpack> do <object.in>
command <take out #@b.p.out#> do <object.out>
'==========================================
'= The Great Check!!!
'==========================================
define procedure <object.in>
if got <backpack> and got <#b.p.in#> then move <#@b.p.in#; dummy.backpack>
end define
define procedure <object.in>
if got <backpack> and got <#b.p.in#> then move <#b.p.in#; dummy.backpack>
end define
another small problem.Ive fixed the !addto game and now the log file is telling me that i don't have a procedure call object.in when i clearly do:
!library
!asl-version <350>
!name <The Backpack>
!version <1.0>
!author <Francis Stokes / amended by MaDbRiT>
!
! This is to give a storage option
! to a game.....its really for my game
! but i made it into a library so people
! can use it if they want.
!addto game
'=========================================
'= The commands!!!!!
'=========================================
command <put #@b.p.in# in backpack> do <object.in>
command <take out #@b.p.out#> do <object.out>
!end
'=========================================
'= The backpack!!!
'=========================================
define room <dummy.backpack>
look <How can you be inside your own backpack?!?!>
end define
'==========================================
'= The Great Check!!!
'==========================================
define procedure <object.in>
if got <backpack> and got <#b.p.in#> then move <#@b.p.in#; dummy.backpack>
end define