|
Prometheus Newbie
Joined: 21 Apr 2004 Posts: 2
|
Posted: Wed Apr 21, 2004 10:15 pm
Scripting Help |
I am very new at scripting and wondering if I can get some help on starting this up.
In the mud I play, you can target limbs and hit those specific limbs. The limbs are right leg, left leg, right arm, left arm, then head and torso.
I want to write a script that will hit a different limb randomly each time I hit a person. You need to recover balance first before you can switch the targetted limb. Please help me! |
|
|
|
Vijilante SubAdmin
Joined: 18 Nov 2001 Posts: 5182
|
Posted: Thu Apr 22, 2004 12:45 am |
This sounds like a very complex task. While it is not beyond the scope of these forums I would suggest searching for some similar topics such as those on balance and reading through the help to gain an understanding of some scripting basics.
Currently you have provided about 1% of the information required to write the script. I would love to help you. However I would need at least another 20% of the information just to figure out what is still missing.
Some obvious questions: What does the mud say when you hit a 'person'? Does it say something different when you hit a 'mob'? Do you want the script to distinguish between the two, if so how? What does it look like when your recover balance? How should the script know you lost balance in the first place? What command is used to 'switch the targetted limb?' Is combat handled in rounds? Do you hit only once each round? How should the script know when to stop issuing commands, like the death of the target? |
|
|
|
complex Apprentice
Joined: 12 Apr 2004 Posts: 134 Location: USA
|
Posted: Thu Apr 22, 2004 12:56 am |
I was about to reply then I realised Vijilante is dead on. Also What mud is it for? I would like to take a stab at this script also. Tho Im not that good I like a challenge!
|
|
|
|
user0101 Apprentice
Joined: 01 Aug 2003 Posts: 100 Location: USA
|
Posted: Thu Apr 22, 2004 1:22 am |
If you play on Achaea or any similar MUDs, this message is for you:
Fighting in Achaea does take some skill, and randomly attacking someones body part will lead to death if they are a monk, or most likely to not much effect if they are good at parrying. The reason people use targetted attacks is to get a limb break which is a good setup for doing massive amounts of damage when they are prone or unable to flee/attack back.
Despite all of this, I will give you a macro which will do precisely what you want, even though I don't think it is in your best interest to use this.
#VAR t %null
#ALIAS t {t=%1}
#KEY F1 {#CASE %random {target head;yourattackhere @t} {target torso;yourattackhere @t} {target left arm;yourattackhere @t} {target left leg;yourattackhere @t} {target right arm;yourattackhere @t} {target right leg;yourattackhere @t}}
1. Copy and paste the above into the command bar
2. Modify "yourattackhere" with the type of attack you can do - maul, warp, curse, kick, etc
3. Firmly press down on your enter key when you are satisfied with the modified code
4. Type "t yourtargetnamehere" to fill the target variable with your intended target
5. Laugh to yourself as you attack your opponent blindly with no skill or plan of attack
To begin flailing at your opponent, align your target variable accordingly and press the "F1" key. |
|
|
|
Prometheus Newbie
Joined: 21 Apr 2004 Posts: 2
|
Posted: Thu Apr 22, 2004 2:33 am |
Thank you! That's precisely what I was looking for and it works well. I am now going to try and turn it into a class so that I can turn it on when I want. The mud is Achaea. Thanks again.
|
|
|
|
|
|