ADESC Code That Only Others Trigger

From City of Hope MUSH
Revision as of 04:19, 5 December 2020 by Nerdvana (talk | contribs) (Created page with "ADESC is awesome and powerful. It lets you know when anything looks at you. However, if you look at yourself (to check what desc you are wearing, etc) you trigger it as well....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

ADESC is awesome and powerful. It lets you know when anything looks at you. However, if you look at yourself (to check what desc you are wearing, etc) you trigger it as well. The following code makes it so that you do not trigger your own Adesc when you look at yourself (overriding the default Player @adesc) and displays the looker's name with their @moniker if they have one (the colorful names some people use on the MUSH.

@adesc me=@break strmatch(%#,%!);think [moniker(%#)] just looked at you.