Edit: Difference between revisions

From Entropy
Line 9: Line 9:


== string ==
== string ==
All variables that are an integer or word/combination of words start with `st`.
All variables that are an integer or word/combination of words start with <code>st`.<br/>


Example: `stBuffGem` is the # of the gem slot you want to use for buffs.
Example: <code>stBuffGem` is the # of the gem slot you want to use for buffs.<br/>


To edit this you can either do `/env buffgem ##`.  
To edit this you can either do <code>/env buffgem ##</code>.<br/>
Or if you have the variable name, you can do `/edit stBuffGem ##`.
Or if you have the variable name, you can do <code>/edit stBuffGem ##.<br/>
Both produce the same results even though the output is different.
Both produce the same results even though the output is different.<br/>


== switch ==
== switch ==
String switches are `TRUE|FALSE
String switches are <code>TRUE|FALSE</code><br/>
Integer switches are `1|0
Integer switches are <code>1|0</code><br/>


`swAuto` is the main macro on off switch variable.
<code>swAuto</code> is the main macro on off switch variable.<br/>
For switches you can do `/env auto` and it will work as a toggle. If it was on it will turn off.
For switches you can do <code>/env auto</code> and it will work as a toggle. If it was on it will turn off.<br/>
You can do `/env auto on` and it will force it on. Off will force off.
You can do <code>/env auto on</code> and it will force it on. Off will force off.<br/>
Or you can use edit and do `/edit swAuto FALSE` to turn it off
Or you can use edit and do <code>/edit swAuto FALSE</code> to turn it off.<br/>


== list ==
== list ==

Revision as of 04:16, 8 May 2021

/edit

All controls in Entropy fall back on the /edit command.

- You can use /edit to directly edit (99%) of all variables in the characters database.
- Any edits made with /edit are not parsed. Meaning /edit variable "${Me.Name}" would not put in your name into the database. It will put ${Me.Name}.
- Edits can directly edit and switch, list or string.


string

All variables that are an integer or word/combination of words start with st`.

Example: stBuffGem` is the # of the gem slot you want to use for buffs.

To edit this you can either do /env buffgem ##.
Or if you have the variable name, you can do /edit stBuffGem ##.
Both produce the same results even though the output is different.

switch

String switches are TRUE|FALSE
Integer switches are 1|0

swAuto is the main macro on off switch variable.
For switches you can do /env auto and it will work as a toggle. If it was on it will turn off.
You can do /env auto on and it will force it on. Off will force off.
Or you can use edit and do /edit swAuto FALSE to turn it off.

list

Editing lists requires some additional parameters.

An empty list in Entropy is not exactly empty. It contains 1 item, the work EMPTY. It is used as a marker to show there is nothing of value in the list.

The healing routines check a list; `lsNoHealToon` for toon names that you really do not like and have no desire to heal. We will use this as our list examples. By default, it is EMPTY.


- add: will add something to a list You can add a single person to this list with `/edit lsNoHealToon uselessbardname add` This will add the bard to that list. It will become the only entry in the list as it was EMPTY before. You can add several things to a list at once using a delimiter of `|`. `/edit lsNoHealToon uselessbardname|mikethemonk|greg add`. This will add all three people at once to the no heals from me list.

- delete: will delete something from a list Removing something from a list, you swap out `add` for `delete`. You can only remove ONE list item at a time.

- clear: will reset a list to EMPTY To clear `lsNoHealToon` you would do `/edit lsNoHealToon clear` and it will be reset to EMPTY.