When I try to ask Bill for uniform and at the rifle it says
that I’ve already got them when I haven’t taken them.
asking for Bob’s stuff works. asking for Bill’s stuff
doesn’t work at all
Output then code follows:
Parade Grounds
The soldiers and sailors parade around in this huge field.
A soldier named Bob is here.
A Sailor named Bill is here.
x bob
He’s a soldier in the U.S. Army.
Bob is carrying:
a rifle
Bob is wearing:
a uniform
x bill
He’s a sailor in the U.S. Navy.
Bill is carrying:
a rifle
Bill is wearing:
a uniform
ask bob for uniform
Bob gives you his uniform.
ask bob for rifle
Bob gives you his rifle.
ask bill for rifle
Bill has already given you his rifle. <-----NO HE HASN’T
ask bill for uniform
Bill has already given you his uniform. <-----NO HE HASN’T
x bob
He’s a soldier in the U.S. Army.
x bill
He’s a sailor in the U.S. Navy.
Bill is carrying:
a rifle
Bill is wearing:
a uniform
"Military Times"
to say /l: say line break.
clsing is an action applying to nothing.
understand "cls" as clsing.
instead of clsing: clear the screen.
to clear the screen: (- VM_ClearScreen(0); -).
a soldier is a kind of person.
understand "soldier" as the soldier.
the description is "He's a soldier in the U.S. Army.".
a sailor is a kind of person.
understand "sailor" as sailor.
the description is "He's a sailor in the U.S. Navy.".
a uniform is a kind of thing.
a uniform is usually wearable.
the plural of uniform is uniforms.
a rifle is a kind of thing.
the description of a rifle is usually "An M1 Garand.".
the plural of rifle is rifles.
Parade Grounds is a room.
"The soldiers and sailors parade around in this huge field."
a soldier called Bob is in Parade Grounds.
"A soldier named Bob is here.".
bob is carrying a rifle and wearing a uniform.
a sailor called Bill is in Parade Grounds.
"A Sailor named Bill is here.".
bill is carrying a rifle and wearing a uniform.
before asking Bill for something (called the wanted2):
if the wanted2 is a rifle and the wanted2 is carried by Bill:
say "Bill gives you his rifle.";
now the wanted2 is carried by yourself instead;
otherwise if the wanted2 is a rifle and the wanted2 is not carried by Bill:
say "Bill has already given you his rifle." instead;
before asking Bill for something (called the duds2):
if the duds2 is a uniform and the duds2 is worn by Bill:
say "Bill gives you his uniform.";
now the duds2 is carried by yourself instead;
otherwise if the duds2 is a uniform and the duds2 is not worn by Bill:
say "Bill has already given you his uniform." instead;
before asking Bob for something (called the wanted):
if the wanted is a rifle and the wanted is carried by Bob:
say "Bob gives you his rifle.";
now the wanted is carried by yourself instead;
otherwise if the wanted is a rifle and the wanted is not carried by Bob:
say "Bob has already given you his rifle." instead;
before asking Bob for something (called the duds):
if the duds is a uniform and the duds is worn by Bob:
say "Bob gives you his uniform.";
now the duds is carried by yourself instead;
otherwise if the duds is a uniform and the duds is not worn by Bob:
say "Bob has already given you his uniform." instead;
instead of examining a uniform:
say "Whose uniform? Bob's uniform or Bills uniform?".
instead of examining a uniform:
say "Whose uniform? Bob's uniform, or Bill's uniform?".
BobUning is an action applying to nothing.
understand "Bob's uniform" or "x bob's uniform" or "examine bob's uniform" as BobUning.
BillUning is an action applying to nothing.
understand "Bill's uniform" or "x Bill's uniform" or "examine Bill's uniform" as BillUning.
instead of BobUning:
say "Bob's uniform is that of a soldier's.".
instead of BillUning:
say "Bill's uniform is that of a sailor's.".
yourself is wearing a military helmet.
before giving the helmet to someone:
if the Helmet is worn by someone who is not yourself:
say " [The holder of the helmet] is already wearing it." instead;
otherwise if the helmet is worn by yourself:
say "(first taking off the helmet): [/l]
You give the helmet to [the second noun] who puts it on.";
now the Helmet is worn by the second noun instead;
otherwise if the helmet is carried by yourself:
say " You give the helmet to [the second noun] who puts it on.";
now the Helmet is worn by the second noun instead;
otherwise if the helmet is not enclosed by yourself:
say "You haven't got it." instead;
instead of asking someone for the helmet:
if yourself encloses the helmet:
say "You've already got it.";
otherwise if the helmet is worn by the second noun:
now the helmet is carried by yourself;
say "[The second noun] gives you the helmet.";
otherwise if the helmet is not worn by the second noun:
say "[The holder of the helmet] gives you the helmet instead.";
now the helmet is carried by yourself;
instead of taking inventory:
if yourself carries something and yourself wears something:
say "You are carrying: [/l]";
repeat with item running through things carried by yourself:
say "a [item] [/l]";
say "[/l]You are wearing: [/l]";
repeat with item running through things worn by yourself:
say "a [item] [/l]";
otherwise if yourself carries something and yourself wears nothing:
say "You are carrying: [/l]";
repeat with item running through things carried by yourself:
say "a [item] [/l]";
otherwise if yourself wears something and yourself carries nothing:
say "You are wearing: [/l]";
repeat with item running through things worn by yourself:
say "a [item] [/l]";
otherwise if yourself carries nothing and yourself wears nothing:
say "You are neither carrying or wearing anything.".
after examining yourself:
if yourself carries something and yourself wears something:
say "You are carrying: [/l]";
repeat with item running through things carried by yourself:
say "a [item] [/l]";
say "[/l]You are wearing: [/l]";
repeat with item running through things worn by yourself:
say "a [item] [/l]";
otherwise if yourself carries something and yourself wears nothing:
say "You are carrying: [/l]";
repeat with item running through things carried by yourself:
say "a [item] [/l]";
otherwise if yourself wears something and yourself carries nothing:
say "You are wearing: [/l]";
repeat with item running through things worn by yourself:
say "a [item] [/l]";
otherwise if yourself wears nothing and yourself carries nothing:
do nothing.
after examining someone who is not yourself:
if the noun carries something and the noun wears something:
say "[The noun] is carrying: [/l]";
repeat with item running through things carried by the noun:
say "a [item] [/l]";
say "[/l][The noun] is wearing: [/l]";
repeat with item running through things worn by the noun:
say "a [item] [/l]";
otherwise if the noun carries something and the noun wears nothing:
say "[The noun] is carrying: [/l]";
repeat with item running through things carried by the noun:
say "a [item] [/l]";
otherwise if the noun wears something and noun carries nothing:
say "[The noun]is wearing: [/l]";
repeat with item running through things worn by the noun:
say "a [item] [/l]";
otherwise if the noun wears nothing and the noun carries nothing:
do nothing.