Syntax: #multiaction [on/off]
Toggles "multiaction mode" ON/OFF. When "multiaction mode" is OFF, JMC stops processing the incoming string after the first matched action is found. Sometimes, however, you have to apply multiple actions to the one string (for instance, to get values of the current movement points, mana, hitpoints from the statusline). When the "multiaction mode" is ON, JMC checks all actions on every incoming string. If you have hundreds of actions, it's probably better to keep this mode OFF, turn it on when you need to parse the string, and then turn it off again.
Second parameter of this command is not necessary. Valid values is "ON" or "OFF". If you dont use it JMC will change current multiaction state to the inverted state.
Example:
#alias get_stats {#action {HP:%1} {#var hp %1}; #act {MVS:%1} {#var mvs %1;#multiaction; #unact {HP:%1}; {#unact MVS:%1}}; #multiaction; #cr }
This is a very complex alias. First it defines two actions. The first action gets the hitpoints from a statusline and puts it in the 'hp' variable. The second action gets the number of movement points from the statusline and puts it into 'mvs' variable. Then it turns the "multiaction mode" OFF and removes both actions. After the actions defined, the alias sends a carriage return to the MUD to get a statusline. When the statusline arrives, the actions fill the variables and the second action deletes both actions and turns the mode OFF.
By default this mode is OFF.
See also: #action