This is an explanation of how you can make a simple script to automatically change your description for various states. For example, you could have your description describe some article of clothing, but only if you're actually wearing that clothing. First, make an alias to set your default description. For example: #ALIAS {descupdate} {describe self She is very pretty.}Next, decide what you want to automatically change. Let's say you want to add "She is wearing a red shirt." to the description when you're wearing a red shirt. Think of every line that could indicate when you wear or remove a red shirt. In this case, it would be wearing, removing, and decaying. So make triggers for all of those things: #REGEX {^You are now wearing a red shirt\.$} {#VAR RedShirt {1};descupdate}#REGEX {^You remove a red shirt\.$} {#VAR RedShirt {0};descupdate}#REGEX {^You are dismayed as a red shirt turns to dust in your hands\.$} {#VAR RedShirt {0};descupdate}#REGEX {^A red shirt has decayed to dust in your absence\.$} {#VAR RedShirt {0};descupdate}These triggers set a variable that indicates whether or not the shirt is worn, and then sends your description alias. Now, add the red shirt part to your description alias. #ALIAS {descupdate} {describe self She is very pretty.%if(@RedShirt," She is wearing a red shirt.")}That will check to see if the RedShirt variable is true, and if so, add the red shirt line to your description. You can also add a line that appears if you're not wearing a red shirt. #ALIAS {descupdate} {describe self She is very pretty.%if(@RedShirt," She is wearing a red shirt."," She is not wearing a red shirt.")}That will check to see if the RedShirt variable is true and add the red shirt line if it is, or add the other line if it isn't. If there's something you want to show in your description, but there's no way to trigger it, you can also make aliases for it. #ALIAS {closeeyes} {emote closes her eyes.;#VAR EyesClosed {1};descupdate}#ALIAS {openeyes} {emote opens her eyes.;#VAR EyesClosed {0};descupdate}#ALIAS {descupdate} {describe self She is very pretty.%if(@RedShirt,"
She is wearing a red shirt."," She is not wearing a red shirt.")%if(@EyesClosed," Her eyes are closed."," Her eyes are opened.")}You can make it more complicated than this, and you can surely write better descriptions than this, but this should at least mean you have no excuse for leaving things in your description that are not currently true. |