MUCK talk:Cheatsheet: Difference between revisions
m (Add missing step) |
m (Remove square brackets) |
||
Line 8: | Line 8: | ||
# Hold the morph you want active in your inventory: <code>take exo: morph's morph: coyote</code> | # Hold the morph you want active in your inventory: <code>take exo: morph's morph: coyote</code> | ||
# Set your description to shortcode that will read the description from the item you are currently holding: <code>@desc me=[iter(lcon(me), if(hasattr(##, Species), s(get(##/desc))))]</code> | # Set your description to shortcode that will read the description from the item you are currently holding: <code>@desc me=[iter(lcon(me), if(hasattr(##, Species), s(get(##/desc))))]</code> | ||
# Repeat for your species: <code>@species | # Repeat for your species: <code>@species iter(lcon(me), if(hasattr(##, Species), s(get(##/species))))</code> | ||
# When you want to switch, change which object you are holding: <code>put morph: coyote in exo: morphs ; take exo: morphs's morph: human</code> | # When you want to switch, change which object you are holding: <code>put morph: coyote in exo: morphs ; take exo: morphs's morph: human</code> | ||
Revision as of 03:04, 18 February 2024
Separate morphs using objects
- Create an object to hold your various morphs. It may as well be an exocortex, yes? Lock it to yourself and set it dark so that others do not see it in your inventory.
@create exo: morphs ; @lock exo: morphs=me ; @set exo: morphs=dark
- Create one object per description in a similar way:
@create morph: coyote ; @lock morph: coyote=me ; @set morph: coyote=dark
- Set the description on the object to whatever you want your description to be.
@desc morph: coyote=Whatever you want, including substitutions...
- Repeat for the species:
@set morph: coyote/species=coyote
- Repeat for as many morphs as you want. When you are done with a morph, put it in your exo:
put morph: human in exo: morphs
- Hold the morph you want active in your inventory:
take exo: morph's morph: coyote
- Set your description to shortcode that will read the description from the item you are currently holding:
@desc me=[iter(lcon(me), if(hasattr(##, Species), s(get(##/desc))))]
- Repeat for your species:
@species iter(lcon(me), if(hasattr(##, Species), s(get(##/species))))
- When you want to switch, change which object you are holding:
put morph: coyote in exo: morphs ; take exo: morphs's morph: human
Cheers to User:Fireheart& for the help on this!