by Flack » Thu Jan 26, 2012 5:31 am
I don't know if this can be applied to Hugo or not, but in "A Game of Chance" (Inform 6) I did the following with my NPCs:
life [;
Ask: switch (second) {
'slot', 'machine', 'slot machine':
"~Yeah, you did a number on that one, didn't you. I've never seen quite so much drool on a machine before.
Impressive.~";
'clock', 'time':
"~Yes sir, it's half-past time for you to go.~";
'carpet':
"~Matches the drapes, thanks.~";
'drapes':
"~Matches the carpet, duh.~";
'drink', 'drinks', 'alcohol', 'beer', 'beers', 'shot', 'shots':
"~Oh no my friend, you've had quite enough.~";
'poker', 'liquor':
"~Poker in the front, liquor in the rear. Er, wait ...~";
'weather':
"~Partly cloudy, with a chance of you being really hung over tomorrow.~";
};
Kiss: "Although the Pit Boss appreciates your offer, alas, he is on the clock.";
Attack, ThrowAt: Pit_Death();
],
before [;
Talk: Pit_Speak();
],
For objects that the player could interact with I set up actual objects, but for one-line retorts, I did them this way.
I don't know if this can be applied to Hugo or not, but in "A Game of Chance" (Inform 6) I did the following with my NPCs:
[i]life [;
Ask: switch (second) {
'slot', 'machine', 'slot machine':
"~Yeah, you did a number on that one, didn't you. I've never seen quite so much drool on a machine before.
Impressive.~";
'clock', 'time':
"~Yes sir, it's half-past time for you to go.~";
'carpet':
"~Matches the drapes, thanks.~";
'drapes':
"~Matches the carpet, duh.~";
'drink', 'drinks', 'alcohol', 'beer', 'beers', 'shot', 'shots':
"~Oh no my friend, you've had quite enough.~";
'poker', 'liquor':
"~Poker in the front, liquor in the rear. Er, wait ...~";
'weather':
"~Partly cloudy, with a chance of you being really hung over tomorrow.~";
};
Kiss: "Although the Pit Boss appreciates your offer, alas, he is on the clock.";
Attack, ThrowAt: Pit_Death();
],
before [;
Talk: Pit_Speak();
],[/i]
For objects that the player could interact with I set up actual objects, but for one-line retorts, I did them this way.