HM-CODE / Haunted-Memories

A repository for Haunted Memories code.
http://www.haunted-memories.net/
BSD 3-Clause "New" or "Revised" License
4 stars 5 forks source link

New bonds +command #103

Closed Bradamante closed 13 years ago

Bradamante commented 13 years ago

Request from vampstaff: Set up a command so staff can see at a glance who has bonds to whom. This would ideally allow staff to alert people immediately if they should feel a bond break when a PC dies.

hmmorpheus commented 13 years ago

C&Ping this here rather than uploading it through git because it's a relatively short, single, command.

&c.+bonds/who #21384=$+bonds/who :setq(0,pmatch(%0));@pemit %#=header(People Who Are Bound to [name(%q0)]);@pemit %#=list(get(#1762/list-approved),[if(gte(match(get(pdb(##,gm)/d.bonds),%q0:,|),1),name(##) <##>,)])[tail()]

This is now ready for review and implementation.

hmmorpheus commented 13 years ago

Uploaded to live.