|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
okay seeing as mother got on the computer and I wasn't able to reply to other thread, it got pushed further down the list. Is there a way to keep updated topics to the top?
okay I am working with this script:
on *:ACTION:*:#:{ if ($4 == flamethrower) && ($6 == barbeques) && ($7 == Gar) { describe # sprinkles the hotest mixture of ingredents known to mankind on his arm before $nick gets a chance to grab it and sits back to watch the show. } elseif ($4 == howitzers) && ($6 == Paladin) && ($7 == Gar) { msg # -=[counter coming soon]=- } elseif ($4 == smashes) && ($6 == revenge) && ($7 == Gar) { describe # smiles at the thought of the look on Bahran's face when he notices the insane asylum is located on a now deserted island surronded by shark infested waters, offering no form of escape. } }
Now the first one works, the barbeque one when my friend usies this script:
/flame /me takes out a flamethrower and barbeques $1- then takes a piece of their crispy arm and chews on it...
Now onto the one I am having problems with. If the same person does this script:
/missile /me annihilates $1- with a barrage of missiles from a few Paladin 155MM Self-propelled howitzers.
it is suppose to work. But it wont. But if he was to type:
/me one two three howitzers five Paladin Gar
it works. Now why is that?
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
It doesn't work becuase youre $Ns are wrong.
elseif ($14 == howitzers) && ($11 == Paladin) && ($2 == Gar)
|
|
|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
how do I know what $N's to use? Do I need to use a diferent one each time?
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
$1 is filled with the first word of the message, $2 with the second, $3 with the third, etc.
It depends on which word you want to check which $N you need to use.
|
|
|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
|
|
|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
okay one more question
Is it possible to do something like this:
If someone does this:
/me poles Gar
I could respond with /me poles [who ever poled me]
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
if ( $1 == poles ) && ( $2 == Gar ) { describe # poles $nick }
|
|
|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
I was thinking that, but for some reason was thinking $nick meant my nick, not thiers
|
|
|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
so would this work?
on*:ACTION:*:#:{ if ($1 == poles) && ($2 == $me) { describe # poles $nick } }
|
|
|
|
Joined: Dec 2002
Posts: 3,138
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 3,138 |
Should do if you add a space between on and the first *.
|
|
|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
yep it does, figured that one out after I posted message
|
|
|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
okay so why doesn't this one work?
on *:ACTION:*:#:{ if ($4 == flamethrower) && ($6 == barbeques) && ($7 == Gar) { describe # sprinkles the hotest mixture of ingredents known to mankind on his arm before $nick gets a chance to grab it and sits back to watch the show. } elseif ($14 == howitzers) && ($11 == Paladin) && ($2 == Gar) { msg # -=[counter coming soon]=- } elseif ($4 == smashes) && ($6 == revenge) && ($7 == Gar) { describe # smiles at the thought of the look on Bahran's face when he notices the insane asylum is located on a now deserted island surronded by shark infested waters, offering no form of escape. } }
if it is responding to: * Bahran takes out a flamethrower and barbeques Gar then takes a piece of their crispy arm and chews on it... * Bahran annihilates Gar with a barrage of missiles from a few Paladin 155MM Self-propelled howitzers.
It works for the flamethrower one, but not for the missiles one
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
$14 is howitzers. (Note the period)
|
|
|
|
Joined: Sep 2003
Posts: 122
Vogon poet
|
OP
Vogon poet
Joined: Sep 2003
Posts: 122 |
thankyou!!!!
/me hits himself over the head with a sledge hammer.
|
|
|
|
Joined: Aug 2003
Posts: 1,831
Hoopy frood
|
Hoopy frood
Joined: Aug 2003
Posts: 1,831 |
Whoa it wasn't that big a mistake.
|
|
|
|
Joined: May 2003
Posts: 215
Fjord artisan
|
Fjord artisan
Joined: May 2003
Posts: 215 |
Someone has a violence fetish :tongue:
- Jason
|
|
|
|
|
|