andrewschultz / very-vile-fairy-file

My IFComp 2019 entry. Release 3 is finished. Release 4 will be a maintenance release adding to the scoring-based storyline. Parent of Quite Queer Night Near.
https://andrewschultz.itch.io/very-vile-fairy-file
0 stars 0 forks source link

Speedup for release 3: divide tables by room if possible #71

Closed andrewschultz closed 4 years ago

andrewschultz commented 4 years ago

the found-rhyme rules are a table name-based rulebook.

a room has a table name called rhyme-table. the rhyme-table of a room is usually (x).

this is the rhyme by room rule: let rtn be rhyme-table of location of playr; if rtn is empty, continue the action; repeat running through rtn: if (valid topic) ... (say what you need) (the rule succeeds)

the rhyme by object rules are a rulebook applying to a thing.

This part may be trickier, to use objects to go through things.

repeat with x running through touchable things: if mistake-table of x is not empty-table: abide by the mistake-checker rules for x;