ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/server/lib/cf/match.pm
(Generate patch)

Comparing deliantra/server/lib/cf/match.pm (file contents):
Revision 1.22 by root, Sat Oct 24 11:45:40 2009 UTC vs.
Revision 1.23 by root, Thu Oct 29 08:29:05 2009 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines