[Home] [Downloads] [Search] [Help/forum]

Gammon Forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  extended wildcard issue
Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

extended wildcard issue

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


Posted by Magellan   (10 posts)  [Biography] 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.
[Go to top] top

Posted by Fiendish   USA  (1,641 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (21,322 posts)  [Biography] 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
[Go to top] top

Posted by Magellan   (10 posts)  [Biography] 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.
[Go to top] 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.


609 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

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

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at FutureQuest]