I’m trying to randomly generate a character in a given location, and at the same time i’m trying to tell I7 to place that character in the location. I tried this, but it didn’t work"
Every turn when player is in Great Northern Road:
say "[bold type][one of]An abbot on horseback crosses your path. What's in those saddlebags?";
now the abbot is in location;
[or]"A gaunt peasant crosses your path. It looks like he could use some kindness.";
now the peasant is in location;
[or]"One of the sheriff['] men crosses your path. Fight or flee?";
now the sherrif's man is in location;
[or]"A fat merchant crosses your path. You wonder how heavy his purse is.";
now the merchant is in location;
[or]"A well-dressed lady on horseback crosses your path.";
now the lady on horseback is in location.[at random][roman type].
Problem message:
Problem. In the text at ‘say “[bold type][one of]An abbot on hor […] path. What’s in those saddlebags?”’ , the text substitution ‘[one of]’ seems to start a complicated say construction, but it doesn’t have a matching end.
(The construction I’m thinking of is ‘[one of] … [or] … [at random]/[purely at random]/[then at random]/[then purely at random]/[sticky random]/[as decreasingly likely outcomes]/[in random order]/[cycling]/[stopping]’.)
See the manual: 5.7 > 5.7. Text with random alternatives
Problem. You wrote ‘“A gaunt peasant crosses your path. […] s like he could use some kindness.”’ : but this is a phrase which I don’t recognise, possibly because it is one you meant to define but never got round to, or because the wording is wrong (see the Phrasebook section of the Index to check). Alternatively, it may be that the text immediately previous to this was a definition whose ending, normally a full stop, is missing?
Problem. You wrote ‘"One of the sheriff[’] men crosses your path. Fight or flee?"’ : again, this is a phrase which I don’t recognise.
Problem. You wrote ‘now the sherrif’s man is in location’ : again, this is a phrase which I don’t recognise.
I was trying to match this phrase:
now (sherrif’s man is in location - a phrase)
But I didn’t recognise ‘sherrif’s man is in location’.
Problem. You wrote ‘“A fat merchant crosses your path. You wonder how heavy his purse is.”’ : again, this is a phrase which I don’t recognise.
Problem. You wrote ‘“A well-dressed lady on horseback crosses your path.”’ : again, this is a phrase which I don’t recognise.