… | |
… | |
92 | Not that C<not> only negates a condition and not the whole match |
92 | Not that C<not> only negates a condition and not the whole match |
93 | expressions, thus |
93 | expressions, thus |
94 | |
94 | |
95 | not applied in inv |
95 | not applied in inv |
96 | |
96 | |
97 | is true if there is I<any> non-object in the inventory. To negate a whole |
97 | is true if there is I<any> non-applied object in the inventory. To negate |
98 | match, you have to use a sub-match. To check whether there is I<no> |
98 | a whole match, you have to use a sub-match: To check whether there is |
99 | applied object in someones inventory, write this: |
99 | I<no> applied object in someones inventory, write this: |
100 | |
100 | |
101 | not (applied in inv) |
101 | not (applied in inv) |
102 | |
102 | |
103 | Example: match applied weapons. |
103 | Example: match applied weapons. |
104 | |
104 | |
105 | applied type=WEAPON |
105 | applied type=WEAPON |
106 | |
106 | |
107 | Example: match horns or rods. |
107 | Example: match horns or rods. |
108 | |
108 | |
109 | type=HORN or type=ROD |
109 | type=HORN or type=ROD |
|
|
110 | |
|
|
111 | Example: see if the originator is a player. |
|
|
112 | |
|
|
113 | type=PLAYER of originator |
110 | |
114 | |
111 | =item in ... |
115 | =item in ... |
112 | |
116 | |
113 | The in operator takes the context set and modifies it in various ways. As |
117 | The in operator takes the context set and modifies it in various ways. As |
114 | a less technical description, think of the C<in> as being a I<look into> |
118 | a less technical description, think of the C<in> as being a I<look into> |