Date Posted:03:44:03 03/09/05 Wed
The auto-assist I would write would go something like this.
you write actions for
#action {%1 slashes %2} {#var {tempvar} {$2};domatch}
and do this for 'crushes' 'bludgeons' etc.
those are all used in the wb32 file, and probably wb21 on the wintin script page. so just copy paste.
then the alias 'checkrescue' would look through a list of players that you want to auto-rescue. you could set this up in a group, and entering them in a certain order would establish priority of rescuing in a fighht. the variable 'tempvar' will take the contents of the players name and that is used by the alias. I treat aliases often as procedures or functions.
the alias' would then be.
#alias {domatch} {#match {output} {torescue} {$temp} {1};checkrescue}
#alias {checkrescue} {#if {($output=1)} {dorescue} else {#nop};#var}
#alias {dorescue} {#if {($time>$lastrescue)} {rescue $temp;#var {lastrescue} {$time}} else {#nop}}
you can use the push function to build the torescue variable, and just write a few actions to do it inline in wintin while playing. you can use #showme to get some output on what is actually happening.
that bit with the time should prevent you from trying to rescue more than one person per round. (wintin has a minimum time resolution of the $time variable of 1 second, and $time is a built in variable, so don't try to set it to anything unless you know what you're doing)