CMUD: Exact Alignment Switch

Scripts for zMUD and CMUD

CMUD: Exact Alignment Switch

Postby Gladavar » Wed May 12, 2010 3:25 am

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.
Last edited by Gladavar on Tue Jul 05, 2011 12:56 am, edited 1 time in total.
Gladavar
 
Posts: 16
Joined: Thu Mar 04, 2010 10:21 pm
Status: Offline

Postby Gladavar » Wed May 12, 2010 4:02 am

Code: Select all
#switch (%mud.currentalign > 999) {#var Alignment %insert(.,%mud.currentalign,3)}
  (%mud.currentalign < -999) {#var Alignment %insert(.,%mud.currentalign,4)}
  (%mud.currentalign < -99) {#var Alignment %insert(.,%mud.currentalign,3)}
  {#var Alignment %insert(.,%mud.currentalign,2)}


forgot a line when i was pasting this should be right.
Gladavar
 
Posts: 16
Joined: Thu Mar 04, 2010 10:21 pm
Status: Offline


Return to zMUD/CMUD Scripts

Who is online

Users browsing this forum: No registered users and 2 guests