Difference between revisions of "Multi-Descer"

From Tenebrae
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
 
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.
 
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
+
:: <font color="#616161">&cmd_newdesc me=$+newdesc */*=*:&desc_%0_%1 me=%2</font>
   
 
Once this is set up, to add a new desc you will type +newdesc <clothes/body>/<name of desc, eg casual>=<Contents of Desc>
 
Once this is set up, to add a new desc you will type +newdesc <clothes/body>/<name of desc, eg casual>=<Contents of Desc>
Line 9: Line 9:
 
Next you will need to set up a command to change your 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
+
:: <font color="#616161">&cmd_setdesc me=$+setdesc *=*:@cpattr me/desc_body_%0=me/desc_body_current;@cpattr me/desc_clothes_%1=me/desc_clothes_current</font>
   
This way you would type +setdesc <body name>=<clothes name> to set your current desc attributes.
+
This way you would type <font color="#616161">+setdesc <body name>=<clothes name></font> to set your current desc attributes.
   
 
Finally, you will need to make it so that these actually show up in your @desc.
 
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
+
:: <font color="#616161">@desc me=%R[u(me/desc_body_current)]%R[u(me/desc_clothes_current)]%r</font>
   
 
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.
 
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.
Line 21: Line 21:
 
Finally, type:
 
Finally, type:
   
:: @set me=!halt
+
:: <font color="#616161">@set me=!halt</font>
   
:: @set me=!no_commands
+
:: <font color="#616161">@set me=!no_commands</font>
   
:: @lock me==me
+
:: <font color="#616161">@lock me==me</font>
   
:: @lock/use me==me
+
:: <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.