A trigger for me being lazy, but I can't get it right...

by Unknown

Back to Mechanic's Corner.

Unknown2007-08-02 18:48:34
So... I want it to be that when I see

"has been slain by (%w)"

That I...

cheer %1

If and only if %1 = @Serens.

@Serens is a user-defined variable I made with a list of all the Serens.

I can't seem to figure out a way to make this work correctly, I have a feeling it involves either #IF or %if, neither of which I am all to comfortable or used to.

... any help?

And yes, yes I am a lazy bum.

But if I can get help figuring this out, making Triggers will be a lot easier for me in the future.
Xenthos2007-08-02 18:53:19
Just as a note, this sort of thing is very annoying to many people.
Unknown2007-08-02 18:54:18
QUOTE(Xenthos @ Aug 2 2007, 02:53 PM) 430982
Just as a note, this sort of thing is very annoying to many people.


What is? Asking for help with triggers that are non-bashing?
Xenthos2007-08-02 18:56:27
QUOTE(Myrkr @ Aug 2 2007, 02:54 PM) 430984
What is? Asking for help with triggers that are non-bashing?

No, the "reactions to defeat of an enemy" bit.

There've even been those who've decided to go out and hunt down those who do it-- but you've just won (usually in a group, as this trigger is based on a group activity) and are "rubbing it in" (this may not be your actual intent, but that's the end result anyways).

But your if thing was close. I'd use %ismember, though.
Forren2007-08-02 19:01:40
Pattern: "has been slain by (%w)"

Value:

#if (%ismember(%1, @serens)) {cheer %1}
Unknown2007-08-02 19:03:19
You should look through the help files - they are VERY helpful, IMHO. Hence the name. And yes, your gunna want to use %ismember (try doing #HELP %ismember on the command line), and #IF...
Try looking through the help files, and if you stil can't get it post again, because knowing how to read ZMUD help files will help you so much in the future.
Xenthos2007-08-02 19:04:28
QUOTE(Dyr @ Aug 2 2007, 03:03 PM) 430991
You should look through the help files - they are VERY helpful, IMHO. Hence the name. And yes, your gunna want to use %ismember (try doing #HELP %ismember on the command line), and #IF...
Try looking through the help files, and if you stil can't get it post again, because knowing how to read ZMUD help files will help you so much in the future.

Forren already gave the game away, unfortunately.

Too bad, too-- the help files are a good way to get used to zMud coding.
Unknown2007-08-02 19:06:07
QUOTE(Forren @ Aug 2 2007, 03:01 PM) 430990
Pattern: "has been slain by (%w)"

Value:

#if (%ismember(%1, @serens)) {cheer %1}


It isn't working correctly. sad.gif
Xenthos2007-08-02 19:07:41
QUOTE(Myrkr @ Aug 2 2007, 03:06 PM) 430995
It isn't working correctly. sad.gif

Read the %ismember information.

(Really, though-- there are good things to use this type of trigger for, but this isn't one of them. It's annoying when anybody does it, on your side or not.)
Unknown2007-08-02 19:07:44
Okay, so, I opened the Triggers window.

For the pattern, I have...

has been slain by (%w)

For the value, I put...

#IF (%ismember( %1, @Serens)) {cheer %1}

I've also tried...

#IF (%ismember( %1, @Serens)){cheer %1}

But it won't work correctly. :< It says there's a syntax error of some sort.
Xenthos2007-08-02 19:08:50
QUOTE(Myrkr @ Aug 2 2007, 03:07 PM) 430997
But it won't work correctly. :< It says there's a syntax error of some sort.

See above.
Unknown2007-08-02 19:09:11
I have a weird feeling my issue is that I'm not putting it in the command line of zMUD, and using the trigger's window instead.

But the trigger's window has always been easier for me... umm.gif
Xenthos2007-08-02 19:10:08
QUOTE(Myrkr @ Aug 2 2007, 03:09 PM) 430999
I have a weird feeling my issue is that I'm not putting it in the command line of zMUD, and using the trigger's window instead.

But the trigger's window has always been easier for me... umm.gif

See above, again.
Unknown2007-08-02 19:10:26
QUOTE(Xenthos @ Aug 2 2007, 03:08 PM) 430998
See above.


I did read the file! :: Flaps arms. ::

#IF (%ismember(@petitioner,@friendsList)) {cast heal @petitioner} {say Nope.}

^~~ Example they give.
Xenthos2007-08-02 19:11:09
Have you made sure to create and populate a Seren variable, then?
Unknown2007-08-02 19:12:18
WAIT! HOLD THE PRESSES! IT WORKS!
Unknown2007-08-02 19:12:54
Now I can die happily.

:: Waits for someone to take that literally and kill her on Lusty. ::
Xenthos2007-08-02 19:13:45
QUOTE(Myrkr @ Aug 2 2007, 03:12 PM) 431006
Now I can die happily.

:: Waits for someone to take that literally and kill her on Lusty. ::

Assuming you're using this in group combat, 4-5v1 or so... I'm sure there are a few who will gladly take you up on that. Heh.
Unknown2007-08-02 19:15:41
QUOTE(Xenthos @ Aug 2 2007, 03:13 PM) 431008
Assuming you're using this in group combat, 4-5v1 or so... I'm sure there are a few who will gladly take you up on that. Heh.



xD Prolly. But usually I hunt in groups of two or three, or during raids.
Unknown2007-08-02 19:16:51
If you cheer at a Seren death when I'm standing there, you just may live long enough to regret it.