… | |
… | |
118 | |
118 | |
119 | =item in map |
119 | =item in map |
120 | |
120 | |
121 | Replaces all objects by the objects that are on the same mapspace as them. |
121 | Replaces all objects by the objects that are on the same mapspace as them. |
122 | |
122 | |
123 | =item in <cond> |
123 | =item in <condition> |
124 | |
124 | |
125 | Finds all context objects matching the condition, and then puts their |
125 | Finds all context objects matching the condition, and then puts their |
126 | inventories into the context set. |
126 | inventories into the context set. |
127 | |
127 | |
128 | Note that C<in inv> is simply a special case of an C<< in <cond> >> that |
128 | Note that C<in inv> is simply a special case of an C<< in <condition> >> that |
129 | matches any object. |
129 | matches any object. |
130 | |
130 | |
131 | Example: find all spells inside potions inside the inventory of the context |
131 | Example: find all spells inside potions inside the inventory of the context |
132 | object(s). |
132 | object(s). |
133 | |
133 | |
… | |
… | |
324 | empty = |
324 | empty = |
325 | |
325 | |
326 | # boolean matching condition |
326 | # boolean matching condition |
327 | |
327 | |
328 | condition = factor |
328 | condition = factor |
329 | | factor 'and'? cond |
329 | | factor 'and'? condition |
330 | | factor 'or' cond |
330 | | factor 'or' condition |
331 | |
331 | |
332 | factor = 'not' factor |
332 | factor = 'not' factor |
333 | | '(' cond ')' |
333 | | '(' condition ')' |
334 | | expr |
334 | | expr |
335 | | expr operator constant |
335 | | expr operator constant |
336 | |
336 | |
337 | operator = '=' | '==' | '!=' | '<' | '<=' | '>' | '>=' |
337 | operator = '=' | '==' | '!=' | '<' | '<=' | '>' | '>=' |
338 | |
338 | |