|
Morgoth Beginner
Joined: 07 Apr 2004 Posts: 12 Location: Israel
|
Posted: Mon Apr 12, 2004 1:04 pm
Triggers - Can't find out how to design this |
Greetings,
I usually am able to find solutions to my problems however this time I just can't manage to.
In Achaea there is a class called Apostates, they deliver affliction by means of using something called "Evileye" which looks like this:
Planirten stares at you, giving you the evil eye.
Hmmmm. Why must everything be so difficult to figure out?
Planirten stares at you, giving you the evil eye.
Your nerves feel suddenly jangled.
However, in some cases, with certain afflictions, the affliction message (in thise case it was Hmmmm. Why must everything be so difficult to figure out?, and Your nerves feel suddenly jangled), the affliction message doesn't appear, and all you get is
Planirten stares at you, giving you the evil eye.
Planirten stares at you, giving you the evil eye.
Now the non-message only occurs for certain afflictions, so I know what they can possibly be, but I don't know how to capture that in a pattern, the obvious solution would be
Planirten stares at you, giving you the evil eye.$Planirten stares at you, giving you the evil eye.
But, the no-message can appear with a yes-message so it could be:
Planirten stares at you, giving you the evil eye.
Hmmmm. Why must everything be so difficult to figure out?
Planirten stares at you, giving you the evil eye.
like that, or:
Planirten stares at you, giving you the evil eye.
Planirten stares at you, giving you the evil eye.
Your nerves feel suddenly jangled.
like that.
So, how would I make that into a trigger?
Thanks in advance. |
|
|
|
user0101 Apprentice
Joined: 01 Aug 2003 Posts: 100 Location: USA
|
Posted: Mon Apr 12, 2004 6:13 pm |
#trigger {%w stares at you, giving you the evil eye.} {}
#cond {(*)} {#if (!@ACP/ignoring and (%1 =~ "%w stares at you, giving you the evil eye.")) {afflict unknown}} {within|param=1}
Or however you plan on dealing with tracking it. Larkin, what do you suggest for this? ACP needs something for this as well. |
|
|
|
Morgoth Beginner
Joined: 07 Apr 2004 Posts: 12 Location: Israel
|
Posted: Mon Apr 12, 2004 6:47 pm |
Err, I'm afraid I don't exactly follow on how to create that.
|
|
|
|
user0101 Apprentice
Joined: 01 Aug 2003 Posts: 100 Location: USA
|
Posted: Mon Apr 12, 2004 9:56 pm |
Sorry, that trigger was for the open source combat system mostly. Here is something more useful for you:
#trigger {%w stares at you, giving you the evil eye.} {}
#cond {(*)} {#if (%1 =~ "%w stares at you, giving you the evil eye.") {add focus or unknown or whatever afflictions you think it might be here}} {within|param=1}
This is just a simple conditional trigger that will check the next line after each evil eye to see if it is a back to back message. This is just a start, since as you mentioned the second evil eye can be the trigger-less one. The only solution I can think of now is messy, which either involves tracking with a variable that is reset on the prompt with a temp trigger, or a check like:
#trigger {%w stares at you, giving you the evil eye.$%dh, %dm} {}
or
#trigger {%w stares at you, giving you the evil eye.} {}
#cond {!{@evileyeattacks}} {blah}
Either way, doing deductive checks like that is sort of processor intensive. But, if you want your system to be exact, and not use a tracking variable, a string list check might be the only way to pick up the strings which are lacking. These types of things are difficult, especially since line checking can be messed up from scripts running and such. I will give it more thought, but for now only half of these trigger less messages seem to be able to be stopped. |
|
|
|
ZFactor1 Newbie
Joined: 10 Apr 2004 Posts: 8
|
Posted: Mon Apr 12, 2004 10:58 pm |
or you could do it this way (depends on balance though)
Planirten stares at you, giving you the evil eye.
diag
if (affliction type) (cure)
works well with zmud you may have to add the line following the diag
for the recognition. |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Tue Apr 13, 2004 3:11 am |
For the ACP, I would just add an unknown affliction, but only if I'm certain that it's not an illusion. Can they do the evileye with no message only once? Or is it always twice?
|
|
|
|
ZFactor1 Newbie
Joined: 10 Apr 2004 Posts: 8
|
Posted: Tue Apr 13, 2004 3:18 am |
speaking of the ACP. I have spoken to several people. noone seems to know of its existance outside of its concept. if you or another person who actually has and uses it would email it to me? please????
thanks
Z
email me at
princesstrucker1@earthlink.net |
|
|
|
Larkin Wizard
Joined: 25 Mar 2003 Posts: 1113 Location: USA
|
Posted: Tue Apr 13, 2004 3:25 am |
When you look at the ACP site, click on CVS and read the instructions. You can 'Browse the CVS Repository' or you can actually check out the code. After a complete a few more aliases and the wizard to configure the ACP, I'll release our first downloadable module.
If you want to join the mailing lists, click on the mailing lists link and read the instructions there.
SourceForge is in read-only mode and seems to be going up and down right now, so I can't do much of anything. Hopefully, it's temporary... |
|
|
|
ZFactor1 Newbie
Joined: 10 Apr 2004 Posts: 8
|
Posted: Tue Apr 13, 2004 8:04 am |
sweet. thanks. I tried using that engine.. ack. it just spammed like mad.. totally abusing my poort tree tatoo. so I deleted it. I look forward to the usable module. and hope I can work with and hopefull help to modify and upgrade it. but I'll try some of the other files 1st. thanks
Z |
|
|
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|