Automated attack strings

Posted by AesthirVoid on Sun 09 Mar 2003 06:38 PM — 2 posts, 13,709 views.

#0
Alright, I am a poor coder, but I've been reading a lot and am trying to figure out how to do the following for my character on Achaea.

I need to be able to initiate an attack string at previously set variable "target", using timers to allow my character to regain his balence between attacks, and throwing in the occasional illusion to throw my foe off. The string needs to work like this:

conjure illusion Zogar sinks his teeth into your neck.
flay @target
wait 2.5 seconds- secrete curare
wait 2 seconds- bite @target
conjure illusion You feel the strength ebb from your body as the cold takes its toll.
wait 2.5 seconds- secrete colocasia
conjure illusion Both your arms must be free and functioning to do that.
wait 2 seconds- bite @target
wait 2.5 seconds- secrete epteth
wait 2 seconds- bite @target
conjure illusion A prickly st*nging overco*es your bo*y.
wait 2.5 seconds- secrete camus
wait 2 seconds bite@target

I would like it to repeat these last two lines until the "target" is killed, at which point the sequence can be ended.

Thanks for any help,
~Aesthe

PS- I'm also working on writing a healing script for Achaea, with much more success, if anyone would like to trade information or can give me a plugin to do so I would be grateful, my email is aesthirvoid@mindspring.com
USA #1
Well. This is easy, and not easy at the same time.

The not easy part= There is no half second timers.

What you can do however is setup a script to so something like what you want.

You can setup world.doafter scripts.
Your trigger runs the script

sub whatever(name, line, wilds)
world.send "flay " + world.getvariable ("target")
world.doafter 3, "secrete " + world.getvariable ("target")
world.doafter 5, blah blah

so on and so forth.

You might need several small scripts to do what you need.

Thats my idea about this.