command <throw #@object# at #throwtarget# #throwdirection#> {
if (%battle% > 0 ) then msg <You are too busy |iBATTLING|xi right now to throw that further in |i|bany|xi|xb direction!>
else {
if got <#object#> then {
if (#throwdirection# = n) then set string <throwdirection; north>
if (#throwdirection# = s) then set string <throwdirection; south>
if (#throwdirection# = e) then set string <throwdirection; east>
if (#throwdirection# = w) then set string <throwdirection; west>
if (#throwdirection# = ne) then set string <throwdirection; northeast>
if (#throwdirection# = nw) then set string <throwdirection; northwest>
if (#throwdirection# = se) then set string <throwdirection; southeast>
if (#throwdirection# = sw) then set string <throwdirection; southwest>
if (#throwdirection# = u) then set string <throwdirection; up>
if (#throwdirection# = d) then set string <throwdirection; down>
do <throwdirectionproc(#throwdirection#)>
}
else {
if property <#object#; combat> then msg <That character is a bit to big for you to throw across the room.>
else msg <You have to pick up that item first before you can throw it.>
}
}
}
command <throw #@object# at #throwtarget# #throwdirection#> {
if got <#object#> then {
msg <Test1>
do <randomtestproc>
}
else {
if property <#object#; combat> then msg <That character is a bit to big for you to throw across the room.>
else msg <You have to pick up that item first before you can throw it.>
}
}
define procedure <randomtestproc>
msg <Test2>
end define
define game <test>
asl-version <400>
start <room>
end define
define text <intro>
end define
define room <room>
define object <thing>
take
end define
command <throw #@object# at #throwtarget# #throwdirection#> {
if got <#object#> then {
msg <Test1>
do <randomtestproc>
}
else {
if property <#object#; combat> then msg <That character is a bit to big for you to throw across the room.>
else msg <You have to pick up that item first before you can throw it.>
}
}
end define
define procedure <randomtestproc>
msg <Test2>
end define
You are in room.
There is thing here.
> take thing
You pick it up.
> throw thing at a b
Test1
Test2