@lock evaluation - luxembourg/muxcode-clm GitHub Wiki

@LOCK EVALUATION (continued)

Examples: > @lock bank=checkmoney/1 > &checkmoney bank=[gt(money(%#),5000)] Only people and objects with more than 5000 pennies may pass. Note: this lock requires wizard privileges to read the worth of other players.

> @lock divisible_by_five_club = checkdiv/0 > &checkdiv divisible_by_five_club = [mod(mid(%#,2,20),5)] Only objects whose db-number is divisible by 5 may pass.

Related Topics: @lock attribute

d %! refer to the locked object or exit.

If you call an indirect lock and the indirect lock is an evaluation lock (or is a compound lock that includes an evaluation lock), then the original lock object is checked for the attribute first, followed by the object that has the actual evaluation lock. If there are multiple levels of indirection the intermediate locks are not checked.

{ 'help @lock evaluation2' for more }

⚠️ **GitHub.com Fallback** ⚠️