Difference between revisions of "Multi-Descer"
Line 11: | Line 11: | ||
:: <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> |
:: <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. |
Revision as of 22:02, 9 July 2010
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. 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.