VoyForums

VoyUser Login optional ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time ]
Subject: Auto-Rescue


Author:
John
[ Next Thread | Previous Thread | Next Message | Previous Message ]
Date Posted: 03:44:03 03/09/05 Wed
In reply to: John 's message, "Auto-Assist/Auto-Rescue" on 03:12:38 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}}

#var {torescue} {Mikey, John, Morgion}
#var output {0}
#var lastrescue {0}

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)

[ Next Thread | Previous Thread | Next Message | Previous Message ]


VoyUser Login ] Not required to post.
Post a public reply to this message | Go post a new public message
* Notice: Posting problems? [ Click here ]
* HTML allowed in marked fields.
Message subject (required):

Name (required):

  Expression (Optional mood/title along with your name) Examples: (happy, sad, The Joyful, etc.) help)

  E-mail address (optional):

* Type your message here:

Choose Message Icon: [ View Emoticons ]

Notice: Copies of your message may remain on this and other systems on internet. Please be respectful.

[ Contact Forum Admin ]


Forum timezone: GMT+0
VF Version: 2.94, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2008 Voyager Info-Systems. All Rights Reserved.