I took a look into the code (yeesh that's a mess!) but came up with this:
command <call #@object#> {
set string <PeopleToCall[0]; Daniel>
set string <PeopleToCall[1]; Matt>
set string <PeopleToCall[2]; Hannah>
set string <PeopleToCall[3]; Carol>
set numeric <LoopA; 0>
set numeric <blnFound; 0>
for <LoopA; 0; 3> {
if ( #object# = #PeopleToCall[LoopA]#) then set <blnFound; 1>
}
if ( %blnFound% = 1 ) then {
if ( #object# <> Carol) then {
msg <You have called #object#. #object# is now in the hallway.>
move <#object#; Hallway>
}
else {
if ( #CLOTHES# = off ) then {
say <AHHH! You're naked!>
set numeric <GOODDEED; %GOODDEED% - 7>
}
}
if ( #HBTALK# = undone ) then {
say <Hey!|nHave you seen my Hardy Boys collection?>
if got <HB Books> then {
say <Ohh, I see you do!|nThanks a lot.|nI'm going to put them in my room right now.>
lose <HB Books>
move <HB Books; Daniel's Room>
set numeric <GOODDEED; %GOODDEED% + 2>
move <Daniel; Front door>
move <Daniel; Hallway>
move <Daniel; Daniel's Room>
set string <HBTALK; done>
}
else say <Aww, you don't have them. Could you go get them for me? I'll wait here.>
}
else msg <Hi.>
}
else msg <Only people will respond to your calling...>
}
This should do the following:
[list]
[*]Check to see if you can move an object to the current room, and only allow the following objects to be moved:[/*:m]
[*]Daniel, Matt, Hannah or Carol.[/*:m]
[*]It will write "You have called #object#. #object# is now in the hallway" whenever you call one of these objects UNLESS that object is Carol![/*:m]
[*]When Carol is called - and the #clothes# is "off" then "AHHH! You're naked" will be printed.[/*:m]
[*]After the object's in the room it will go through that hardy boys thing if #HBTALK# = undone and you have "HB books".[/*:m]
[*]If you don't have the books then it will say "awwww well".[/*:m]
[*]If #HBTALK# isn't "undone" it will say "hi".[/*:m]
[*]And if you haven't said one of the above people then it will say only people are able to be called![/*:m][/list:u]
I think this is what you were after - but as the code was a mess I can't be sure!
And just to insure myself I haven't tested this code so I probably have a couple of mistakes in there - most of it's correct though!!.... I hope
_________________
Computer Whizz
==Insert Sig Here!==
Currently Listening To :
Vertical Horizon - Everything You WantUsing Winamp.