Edit: Difference between revisions

From Entropy
 
(5 intermediate revisions by the same user not shown)
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</code>.<br/>


Example: `stBuffGem` is the # of the gem slot you want to use for buffs.
Example: <code>stBuffGem</code> 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 ##</code>.<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 ==
Line 31: Line 31:
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.   
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.
The healing routines check a list; <code>lsNoHealToon</code> 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
- add: will add something to a list<br/>
You can add a single person to this list with `/edit lsNoHealToon uselessbardname add`  
You can add a single person to this list with <code>/edit lsNoHealToon uselessbardname add</code><br/>  
This will add the bard to that list. It will become the only entry in the list as it was EMPTY before.
This will add the bard to that list. It will become the only entry in the list as it was EMPTY before.<br/>
You can add several things to a list at once using a delimiter of `|`.
You can add several things to a list at once using a delimiter of <code>|</code>.<br/>
`/edit lsNoHealToon uselessbardname|mikethemonk|greg add`. This will add all three people at once to the no heals from me list.
<code>/edit lsNoHealToon uselessbardname|mikethemonk|greg add</code>. This will add all three people at once to the no heals from me list.<br/>


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


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

Latest revision as of 04:20, 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.