Difference between revisions of "Multi-Descer"

From Tenebrae
Jump to navigation Jump to search
 
Line 29: Line 29:
 
:: <font color="#616161">@lock/use me==me</font>
 
:: <font color="#616161">@lock/use me==me</font>
   
The first two activate your commands, while the locks prevent other people from inadvertently triggering your commands if they have a similar multidescer. Page or @mail Chiddle in-game, or drop me a line at aptom203@googlemail.com if I'm not around, and you need help or tips.
+
The first two activate your commands, while the locks prevent other people from inadvertently triggering your commands if they have a similar multidescer.

Latest revision as of 04:15, 15 September 2011


This simple multidescer allows you to store descs in 2 segments, clothes and body, and then recall and combine them how you wish. First, create the commands you'll use to save the descs, and can be coded in just a few minutes yourself when there isn't one readily available. With minor changes, it can work with just about any major MUSH codebase as it relies entirely on Hardcode, not softcode.

&cmd_newdesc me=$+newdesc */*=*:&desc_%0_%1 me=%2

Once this is set up, to add a new desc you will type +newdesc <clothes/body>/<name of desc, eg casual>=<Contents of Desc>

Next you will need to set up a command to change your desc.

&cmd_setdesc me=$+setdesc *=*:@cpattr me/desc_body_%0=me/desc_body_current;@cpattr me/desc_clothes_%1=me/desc_clothes_current

This way you would type +setdesc <body name>=<clothes name> to set your current desc attributes.

Finally, you will need to make it so that these actually show up in your @desc.

@desc me=%R[u(me/desc_body_current)]%R[u(me/desc_clothes_current)]%r

This will make it so that the descs currently stored in desc_body_current and desc_clothes_current show up as your description when you're looked at.

Finally, type:

@set me=!halt
@set me=!no_commands
@lock me==me
@lock/use me==me

The first two activate your commands, while the locks prevent other people from inadvertently triggering your commands if they have a similar multidescer.