Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ MUSHclient ➜ General ➜ extended wildcard issue

extended wildcard issue

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Magellan   (15 posts)  Bio
Date Mon 25 Sep 2017 04:13 AM (UTC)
Message
I am having trouble to get this trigger to fire correctly. I've been working at it for a while, pouring over the forums looking for likely fixes. anyway the issue is this:


Debug(.*?) on combat_round :: (.*?) is successfully hitting (.*?) for (.*?) actual damage.

FPCDPS = GetVariable ("FPCDPS")
Note ("combat %2, %4, @FPCDPS")
if %2 == "Magellan" then 
SetVariable ("PCDPS", tonumber (GetVariable ("PCDPS")) + %4)
else
Note ("option 2")
end
Execute ("mathpcdps")


So when %2 equals Magellan the trigger fires as intended. However if %2 is something else i have an error. I believe the error may be related to how the "other" is being represented, which is this:


_1055134_623666 name1 name2 name3


I get the error:


Compile error
World: NDAedit
Immediate execution
[string "Trigger: "]:3: 'then' expected near 'name1'


any help would be appreciated. i am trying to figure out my dps vs the dps of the NPC if this helps. thanks.
Top

Posted by Fiendish   USA  (2,534 posts)  Bio   Global Moderator
Date Reply #1 on Tue 26 Sep 2017 12:26 AM (UTC)

Amended on Tue 26 Sep 2017 12:30 AM (UTC) by Fiendish

Message
Template:copying For advice on how to copy aliases, timers or triggers from within MUSHclient, and paste them into a forum message, please see Copying XML.


Quote:
when %2 equals Magellan the trigger fires as intended

It doesn't do what you think it does, though. You almost certainly want "%2", not just %2.

https://github.com/fiendish/aardwolfclientpackage
Top

Posted by Nick Gammon   Australia  (23,133 posts)  Bio   Forum Administrator
Date Reply #2 on Tue 26 Sep 2017 06:00 AM (UTC)
Message
Template:faq=32 Please read the MUSHclient FAQ - point 32.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Magellan   (15 posts)  Bio
Date Reply #3 on Tue 26 Sep 2017 08:19 PM (UTC)
Message
that was what i was missing. thanks. i'll try to post it the right way next time Fiendish.
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


14,234 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.