Difference between revisions of "Shift"

From City of Hope MUSH
Jump to navigation Jump to search
imported>WhoopingCrane
imported>Felix
Line 1: Line 1:
'''Before you start using any of the shift forms. PLEASE PLEASE PLEASE cut and paste the following commands. This will keep you from shifting if anyone else on the grid shifts!'''
+
==Before you begin==
 +
'''Before you start using any of the shift forms. PLEASE PLEASE PLEASE cut and paste the following commands. This will keep you from shifting when anyone else in the room shifts!'''
  
 
@lock me=me
 
@lock me=me
Line 5: Line 6:
 
@lock/use me=me
 
@lock/use me=me
  
@lock/enter me=me
+
@lock/enter me=me&!me
  
 +
==Option 1==
 +
From [[Klem]]:
  
 
'''As I said, this is my coding that I use, so you will have to swap your names for what you will remember your many forms :)'''
 
'''As I said, this is my coding that I use, so you will have to swap your names for what you will remember your many forms :)'''
Line 24: Line 27:
 
Then to shift, type "+crinos" or whatever.
 
Then to shift, type "+crinos" or whatever.
  
 +
==Option 2==
 +
From [[Klem]]:
  
'''Alternative. This is best for descs that have semicolons in them.'''
+
'''Alternative. This will work with descs that have semicolons in them.'''
  
 
'''Also note - you can NAME these anything you want if you prefer glabro rather than caveman, just put glabro in the spots where caveman is, and so on'''
 
'''Also note - you can NAME these anything you want if you prefer glabro rather than caveman, just put glabro in the spots where caveman is, and so on'''
Line 49: Line 54:
 
&CMD_CRINOS me=$+crinos: +shift Garou-crinos;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=[u(crinos_desc)]
 
&CMD_CRINOS me=$+crinos: +shift Garou-crinos;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=[u(crinos_desc)]
  
 +
==Option 3: Separating Data from Code==
 +
From [[Felix]]:
  
 +
'''A more compact alternative. This one works even if your descs contain semi-colons or use functions. It also separates out your information (names, descs, short-descs) from the code, making it easy to update. Once you set the command, you should never have to touch it again. Just update the NAME_*, FORM_*, and FORM_*-SHORT attributes when you want to change them.'''
 +
 +
'''Syntax:''' +homid, +glabro, +crinos, +hispo, and +lupus
 +
 +
'''The command:'''<br/>
 +
&CMD_SHIFT me=$\+(homid|glabro|crinos|hispo|lupus):+shift [ifelse(match(%1,homid),shifter-homid,garou-%1)];&NOW_FORM me=%1;@name me=ifelse(member(homid glabro,%1),v(NAME_MAIN),v(NAME_RITE))
 +
 +
'''The setup:'''<br/>
 +
@desc me=[u(FORM_[v(NOW_FORM)])]
 +
 +
&SHORT-DESC me=[v(FORM_[v(NOW_FORM)]-SHORT)]
 +
 +
&NAME_MAIN me=<Name><br/><span style="padding-left:3em;">''For example: &NAME_MAIN me=Bob''</span>
 +
 +
&NAME_RITE me=<Ritename><br/><span style="padding-left:3em;">''For example: &NAME_RITE me=Verbs-the-Noun''</span>
 +
 +
&FORM_<form> me=<Desc><br/><span style="padding-left:3em;">''For example: &FORM_LUPUS me=Many words about me being a wolf!''</span>
 +
 +
&FORM_<form>-short me=<Shortdesc><br/><span style="padding-left:3em;">''For example: &FORM_LUPUS-SHORT me=Look, a wolf!''</span>
 +
 +
You'll need a &FORM_<form> for each of your forms, and a &FORM_<form>-short for each form you want to have a shortdesc.  This code also assumes that your homid and glabro forms use your main name, and the other three use the ritename. If you want to change anything aside from name, desc, and short-desc, you can still use the &DATA_ASHIFT set of attributes to do so.
 +
 +
==Option 4: the built-in code==
 
'''Another alternative. This is the method built into the +shift code.'''
 
'''Another alternative. This is the method built into the +shift code.'''
  

Revision as of 06:19, 10 September 2016

Before you begin

Before you start using any of the shift forms. PLEASE PLEASE PLEASE cut and paste the following commands. This will keep you from shifting when anyone else in the room shifts!

@lock me=me

@lock/use me=me

@lock/enter me=me&!me

Option 1

From Klem:

As I said, this is my coding that I use, so you will have to swap your names for what you will remember your many forms :)

Also note - you can NAME these anything you want if you prefer glabro rather than caveman, just put glabro in the spots where caveman is, and so on

&CMD_HUMAN me=$+human:+shift SHIFTER-HOMID;@name me=human name goes here;&short-desc me=Tiny desc here;@desc me=%r%r%t desc goes here. %r

&CMD_WOLF me=$+wolf:+shift Garou-lupus;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=%r%r%t desc goes here. %r

&CMD_DIRE me=$+dire:+shift Garou-hispo;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=%r%r%t desc goes here. %r

&CMD_CAVEMAN me=$+caveman: +shift Garou-glabro;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=%r%r%t desc goes here. %r

&CMD_CRINOS me=$+crinos: +shift Garou-crinos;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=%r%r%t desc goes here. %r

Then to shift, type "+crinos" or whatever.

Option 2

From Klem:

Alternative. This will work with descs that have semicolons in them.

Also note - you can NAME these anything you want if you prefer glabro rather than caveman, just put glabro in the spots where caveman is, and so on

&human_desc me=desc goes here

&lupus_desc me=desc goes here

&hispo_desc me=desc goes here

&glabro_desc me=desc goes here

&crinos_desc me=desc goes here

&CMD_HUMAN me=$+human:+shift SHIFTER-HOMID;@name me=human name goes here;&short-desc me=Tiny desc here;@desc me=[u(human_desc)]

&CMD_WOLF me=$+wolf:+shift Garou-lupus;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=[u(lupus_desc)]

&CMD_DIRE me=$+dire:+shift Garou-hispo;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=[u(hispo_desc)]

&CMD_CAVEMAN me=$+caveman: +shift Garou-glabro;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=[u(glabro_desc)]

&CMD_CRINOS me=$+crinos: +shift Garou-crinos;@name me=rite name here;&short-desc me=Tiny desc here;@desc me=[u(crinos_desc)]

Option 3: Separating Data from Code

From Felix:

A more compact alternative. This one works even if your descs contain semi-colons or use functions. It also separates out your information (names, descs, short-descs) from the code, making it easy to update. Once you set the command, you should never have to touch it again. Just update the NAME_*, FORM_*, and FORM_*-SHORT attributes when you want to change them.

Syntax: +homid, +glabro, +crinos, +hispo, and +lupus

The command:
&CMD_SHIFT me=$\+(homid|glabro|crinos|hispo|lupus):+shift [ifelse(match(%1,homid),shifter-homid,garou-%1)];&NOW_FORM me=%1;@name me=ifelse(member(homid glabro,%1),v(NAME_MAIN),v(NAME_RITE))

The setup:
@desc me=[u(FORM_[v(NOW_FORM)])]

&SHORT-DESC me=[v(FORM_[v(NOW_FORM)]-SHORT)]

&NAME_MAIN me=<Name>
For example: &NAME_MAIN me=Bob

&NAME_RITE me=<Ritename>
For example: &NAME_RITE me=Verbs-the-Noun

&FORM_<form> me=<Desc>
For example: &FORM_LUPUS me=Many words about me being a wolf!

&FORM_<form>-short me=<Shortdesc>
For example: &FORM_LUPUS-SHORT me=Look, a wolf!

You'll need a &FORM_<form> for each of your forms, and a &FORM_<form>-short for each form you want to have a shortdesc. This code also assumes that your homid and glabro forms use your main name, and the other three use the ritename. If you want to change anything aside from name, desc, and short-desc, you can still use the &DATA_ASHIFT set of attributes to do so.

Option 4: the built-in code

Another alternative. This is the method built into the +shift code.

&DATA_ASHIFT_GAROU-CRINOS me=@name me=rite name here;&short-desc me=Tiny desc here;@desc me=%r%r%t desc goes here. %r

etc.

Then to shift, type "+shift garou-crinos" or whatever. "+shift/forms" lists what options are available.

Important: If you use this method, then DO NOT include "+shift" as one of the commands, otherwise you'll trigger an infinite loop.