|
Darkwytch Novice
Joined: 20 Feb 2004 Posts: 41 Location: USA
|
Posted: Wed Jun 15, 2005 8:49 am
backstabbing in a game |
hiya all.. I was wondering if you could help me...
I need to make a trigger/script or what ever you call it to back stab remove a weapon... and equip another weapon during a fight.. I need something for the backstab weapon.. and the weapon im going to use. but i dont know exactally how to code it right.. I want to be able to let it know i intend on using like a spear or a sword or what ever else weapon after i back stab.. can someone help me please?
Quote: |
#CLASS {Backstabbing}
#ALIAS dagger {#IF @WieldedWeapon {Slayer} {remove slayer;wield dagger}}
#ALIAS spear {#IF @WieldedWeapon {dagger} {remove dagger;wield spear}}
#ALIAS sword {#IF @WieldedWeapon {dagger} {remove dagger;wield slayer}}
#VAR WieldedWeapon {}
#VAR BackstabWeapon {}
#VAR Weapon {}
#TRIGGER {You stop using a steel spear.} {spear} "" {disable}
#TRIGGER {^You attempt to stab a slimy eel in the back with *1, but miss.$} {flee north;dagger;south}
#TRIGGER {^You attempt to stab %1 in the back with %2, but miss.$} {#IF {@weapon} {remove @weapon;hold @wieldedweapon}}
#TRIGGER {^You stab %1 in the back with *.$} {#IF @WieldedWeapon {dagger} {remove dagger;wield slayer}}
#TRIGGER {^You wield an (%1} in your right hand.} {#VARIABLE WieldedWeapon %1;wield %1}
#CLASS 0 |
|
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Wed Jun 15, 2005 8:19 pm |
I'm not quite sure how you want to set it up. But I can tell there are a few errors in your parameters
#ALIAS dagger {#IF (@WieldedWeapon=slayer) {remove slayer;wield dagger}}
#TRIGGER {^You attempt to stab (*) in the back with (*), but miss.$} {#IF (@weapon) {remove @weapon;hold @wieldedweapon}}
I'm not sure how you populated the @weapon variable there it seems its always set to %null so that #IF will never do anything, unless of corse @weapon is defined somewhere else in your scripts.
To change the weapons all you need is this one trigger you already had
#TRIGGER {^You stab * in the back with (*).$} {#IF (%1=dagger} {remove dagger;wield slayer}}
[/quote] |
|
|
|
Darkwytch Novice
Joined: 20 Feb 2004 Posts: 41 Location: USA
|
Posted: Thu Jun 16, 2005 12:09 am |
so how do i get it to use one weapon instead of the othter... I realize that the first part is for what i backstab with... what about the switch off weapon... this trigger you have here only shows slayer...
Quote: |
To change the weapons all you need is this one trigger you already had
#TRIGGER {^You stab * in the back with (*).$} {#IF (%1=dagger} {remove dagger;wield slayer}} |
|
|
|
|
DeReP Adept
Joined: 14 Jun 2003 Posts: 222 Location: Chile
|
Posted: Thu Jun 16, 2005 3:01 am |
I'm not sure what you are trying to accomplish.
Is it like, if you were wielding "slayer" you want to switch to dagger? or of you were wielding spear switch to slayer and so? |
|
|
|
Darkwytch Novice
Joined: 20 Feb 2004 Posts: 41 Location: USA
|
Posted: Thu Jun 16, 2005 6:14 pm |
What I want to do is this...
1. hold my dagger before combat
2. backstab mob/player
3. after miss of backstab or landing of backstab weapon backstab weapon is removed and one of the other weapons sword/flail/spear/axe is held for the rest of the fight.
4. then after the fight i will remove that weapon and hold my backstabbing weapon |
|
|
|
xenapan Wanderer
Joined: 26 May 2004 Posts: 68
|
Posted: Fri Jun 17, 2005 1:03 am |
a simple alias would do that.. id use 3 variables. dagger, primary
then the alias would go something like this
#ALIAS backstab {remove @primary;wear @dagger;bs %1;rem @dagger;wear @primary}
or if you start with dagger in hand, remove the first 2 commands. id personally leave it since if you run into an aggressive mob, you dont want to start with your dagger and fiddle to get your primary in place. |
|
_________________ Player on Realms of Despair. realms.game.org port 4000. Join us today! |
|
|
|
Darkwytch Novice
Joined: 20 Feb 2004 Posts: 41 Location: USA
|
Posted: Fri Jun 17, 2005 5:32 am |
how does the mud know what is your @dagger weapon and which is the @primary weapon?
Would I need something special for that? |
|
|
|
demoneyoungblood Apprentice
Joined: 16 Dec 2002 Posts: 114 Location: USA
|
Posted: Fri Jun 17, 2005 11:55 am |
Code: |
#alias {bswep} {#var bswep %1}
#alias {primary} {#var primary %1}
#alias {bs} {rem @primary;wield @bswep;backstab %1;rem @bswep;wield @primary}
|
Ok... pretty self explanatory... you set your weapons yourself... ie:
to set backstab weapon:
bswep dagger
to set primary weapon:
primary flail
to backstab with bsweapon:
bs mobname
it will automatically remove your primary, wield your dagger, backstab, reremove your dagger, and rewield your primary.... shouldnt need anything more unless you want to get even more complicated... |
|
_________________ -Demone YoungBlood |
|
|
|
Darkwytch Novice
Joined: 20 Feb 2004 Posts: 41 Location: USA
|
Posted: Fri Jun 17, 2005 1:00 pm |
Thank you so much ... everyone.. I appriciate it.
|
|
|
|
|
|