A little help with Nexus

by Arin

Back to Mechanic's Corner.

Arin2007-04-25 12:37:14
Generally I'm happy with my current influencing script.

However, just a little aesthetic pleasure...

When I analyze the mob, it comes up with a message like so and so has an intimidating demeanor. He is currently laidback.

What I want to do is a trigger that would echo "So and so is intimidating. Use PARANOIA."

TRIGGER: {*:itarget} possesses {*:itype}

ACTION:
#IF $itype = an intimidating demeanor { #ECHO $itarget is intimidating, use PARANOIA }

This is what I have, and I know it doesn't work. I've tried assigning variables like that before and it didn't work. And I'm pretty sure Nexus won't recognise multi-word condition (and I couldn't find which symbol to group the words).

---

As an addendum, I don't seem to be able to use the wildcard properly. E.g. with clotting, I tried the trigger "You bleed * health." or whatever it is, but it won't pick it up. Not sure what I'm doing wrong there.

Ayridion2007-04-25 16:09:17
I don't know if this will work, but try...

CODE
TRIGGER: {*:itarget} possesses {*:itype}. {w}

ACTION:
#IF $itype = "an intimidating demeanor" { #ECHO $itarget is intimidating, use PARANOIA }


It might overrun the wrapwidth, depending on the mob's name. I'm also, by no means, a Nexus expert.
Unknown2007-04-25 16:17:31
QUOTE(Arin @ Apr 25 2007, 08:37 AM) 401501
As an addendum, I don't seem to be able to use the wildcard properly. E.g. with clotting, I tried the trigger "You bleed * health." or whatever it is, but it won't pick it up. Not sure what I'm doing wrong there.


Bad idea, you'd be clotting every single time you bleed even 1 health, which wastes mana.

If there was a way in Nexus so you could, say, have

Trigger:

You bleed ? health.

Action:

If ? > 20, then CLOT
Unknown2007-04-25 16:46:45
Single clotting uses only 40 mana, so it shouldn't be a big problem, maybe a small one. The problem with bleeding isn't that you waste mana when clotting small amounts of it, but rather that you need to clot more than once when you bleed huge amounts of HP.
Daganev2007-04-25 17:06:50
Can't use wildcards in nexus triggers

Have to use %d or %w
Unknown2007-04-25 18:54:18
Trigger: {<}You bleed {d:bleeding} health.{>}
Command: #if $bleeding > 40 {clot}

Disclaimer: not recommending this as a healing solution, just a Nexus tip. Also, I'm no Nexus expert, either. I just looked this up in the help file now.
Unknown2007-04-26 05:06:15
QUOTE(Soraka @ Apr 26 2007, 12:17 AM) 401540
Bad idea, you'd be clotting every single time you bleed even 1 health, which wastes mana.

If there was a way in Nexus so you could, say, have

Trigger:

You bleed ? health.

Action:

If ? > 20, then CLOT

That doesn't matter, because if you bleed for less than 20, you can't clot.
Rika2007-04-26 05:26:48
Going back to original script:

Trigger: {w} possesses {w}. {w} is currently laidback.
#set itarget $1
#set itype $2
#if $itype=an intimidating demeanor {#echo $itarget is intimidating, use PARANOIA}

You'd need #if lines for all five personalities, of course.
How's that work?
Arin2007-04-26 08:26:42
Thanks for the reply guys.

I've tried:

Ayridion's method: nope.
Rika's method: nope.


TRIGGER: {w:itarget} possesses {w:itype}
ACTION:
#ECHO $1
#ECHO $2


This is pretty much what Rika pointed me to, except decided to flag the variables rather than assigning them.

I analyze Helstren and the return was:

Helstren, the Harbourmaster of New Celest possesses an intimidating demeanor. He is currently laidback.

However, what comes up is:

Celest
an


Obviously, the code is only taking the word just before possesses and the word right after. Any thoughts?
Rika2007-04-26 09:37:52
Still trying to work it out, but just out of curiosity, why don't you just read what the analyze says and use the right influence?
Arin2007-04-26 11:31:15
Because I have to think tongue.gif

As I said, it's all aesthetic. Besides, if this works, I can apply it to my other triggers (e.g. some affliction - eat whatever)
Unknown2007-04-27 17:21:45
====Wrong Section =====
Unknown2007-04-27 17:22:22
Edited***

doubleposted, accident
Unknown2007-04-27 17:22:22
Edited***

Triple post, ow
Daganev2007-04-27 17:32:16
QUOTE(Arin @ Apr 26 2007, 01:26 AM) 401750
Thanks for the reply guys.

I've tried:

Ayridion's method: nope.
Rika's method: nope.


TRIGGER: {w:itarget} possesses {w:itype}
ACTION:
#ECHO $1
#ECHO $2


This is pretty much what Rika pointed me to, except decided to flag the variables rather than assigning them.

I analyze Helstren and the return was:

Helstren, the Harbourmaster of New Celest possesses an intimidating demeanor. He is currently laidback.

However, what comes up is:

Celest
an
Obviously, the code is only taking the word just before possesses and the word right after. Any thoughts?



I have no idea how to grab an entire line of text. IF its possible, it will be in the nexus help files, if its not in there, its not possible.
Rika2007-04-27 19:56:55
I think the only way to do this is to create a separate trigger for each personality.