Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ VBscript
➜ Automated attack strings
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| AesthirVoid
(1 post) Bio
|
Date
| Sun 09 Mar 2003 06:38 PM (UTC) |
Message
| 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 | Top |
|
Posted by
| David B
USA (80 posts) Bio
|
Date
| Reply #1 on Sun 09 Mar 2003 11:47 PM (UTC) |
Message
| 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.
|
My code(with a LOT of Nicks help) to fame:
sub OnAutoCombo (TriggerName, TriggerLine, arrWildCards)
dim AutoCombo
AutoCombo = split (arrWildCards (1))
Dim i, attack
for i=lbound (AutoCombo ) to ubound (AutoCombo )
Select Case AutoCombo (i)
case "rp" attack = "punch right"
case "lp" attack = "punch left"
case "s" attack = "sweep"
case "r" attack = "roundhouse"
case else attack = "" ' unknown attack type
End Select
if i = ubound (AutoCombo ) then
world.send "throw " + world.getvariable ("attacker") + " down"
else
world.send attack + " " + world.GetVariable ("attacker")
end if
next
end sub
| Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
11,142 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top