say "You do not have enough experience to purchase defense!".
Understand "buy health" as buying health. Buying health is an action applying to nothing.
Carry out buying health:
if the experience of the player is greater than 9:
increase the health of the player by 1;
increase the experience of the player by 10;
say "You have purchased one to your health!";
otherwise:
say "You do not have enough experience to purchase health!".
Understand "accuse [something]" as accusing. Accusing is an action applying to one visible thing.
Carry out accusing when the noun is a person and the noun is not the player:
if the crime solved is false and the noun is Officer Arnold:
say "Officer Arnold looks at you confused and says 'I know we haven't known each other long, but why in the world would accuse your partner with such baseless accusations?'";
otherwise:
if the health of the noun > the damage of the noun:
let encounter roll be strength of player;
repeat with die running from 1 to dice pool of player:
let die roll be a random number from 1 to 6;
increase encounter roll by die roll;
decrease encounter roll by defense of the noun;
if encounter roll is less than 0:
let encounter roll be 0;
say "You exclaim 'I accuse you, [the noun]!'";
increase the damage of the noun by encounter roll;
let encounter roll be strength of the noun;
repeat with die running from 1 to dice pool of the noun:
let die roll be a random number from 1 to 6;
increase encounter roll by die roll;
decrease encounter roll by defense of the player;
if encounter roll is less than 0:
let encounter roll be 0;
say "[the noun] says 'But, I didn't do it!'.";
increase the damage of the player by encounter roll;
otherwise:
say "Unimpressed with your accusations, [the noun] has received enough for the day.".
Carry out accusing when the noun is a person and the noun is the player:
say "[paragraph break][bold type]You have earned 10 experience and can spend them at some point. Type in help for what you can spend them on.[roman type]";