CMUD: Exact Alignment Switch

- Code: Select all
#switch (%mud.currentalign > 999) {#var Alignment %insert(.,%mud.currentalign,3)}
(%mud.currentalign < -999) {#var Alignment %insert(.,%mud.currentalign,4)}
{#var Alignment %insert(.,%mud.currentalign,2)}
Throw this in a trigger that fires fairly often like one for your prompt and it will capture your exact alignment into the variable @Alignment . Assuming you have MXP enabled. You can then display that variable how ever you want, status window, button caption, echo from alias, or even #sub it to the end of your prompt if you wanted.