JS-CHAR-RESCUE
The Char rescue() method is used to pull attackers off of a victim and on to the character that rescue() is called on. The syntax is:
<rescuer>.rescue( <damsel>, <option0>, ..., <optionN> )
Where rescuer is the character doing the rescuing, damsel is the character to be rescued, and options are the following:
| 'attmsg', <msg> | Message to attacker on successful rescue. |
| 'dammsg', <msg> | Message to damsel on successful rescue. |
| 'resmsg', <msg> | Message to rescuer on successful rescue. |
| 'roommsg', <msg> | Message to room on successful rescue. |
| 'odds', <odds> | The percent chance of success the rescue attempt should have. The success is modified by the difference in power levels of the rescuer and the attacker. |
| 'multiple' | Whether multiple attackers can be pulled off. The default is to attempt to pull off just a single attacker. |
All of the rescue messages can take caret-substitution with #1 being the rescuer, #2 the damsel, and #3 the attacker.
By default rescue() uses a standard set of rescue messages if you do not specify any messages of your own. You can also specify null for a message if you wish that message to be silent. For example the following would give self a 50% chance of pulling one attacker off of its master:
self.rescue( master, 'odds', 50,
'attmsg', "^n shimmers a little and ^2n suddenly looks like ^n!",
'roommsg', "^3n isn't sure if ^3e is fighting ^n or ^2n!" );