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

Gammon Software Solutions forum

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

[Folder]  Entire forum
-> [Folder]  MUSHclient
. -> [Folder]  General
. . -> [Subject]  Trigger omitting problem.

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

Trigger omitting problem.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by LupusFatalis   (154 posts)  [Biography] bio
Date Thu 23 Apr 2009 05:18 AM (UTC)  quote  ]
Message
So here is the issue. Writing a script to color certain phrases in a line for me. Triggers fine, colors fine. But when I try to get it to omit the original line from output, it omits both.
<triggers>
  <trigger
   back_colour="8"
   enabled="y"
   match="^(.+) unlocks the (.+) to the (.+)\.$"
   match_back_colour="y"
   omit_from_output="y"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>world.ColourTell('#FFFFFF', '', '%1')
world.ColourTell('#CCCCCC', '', ' unlocks the ')
world.ColourTell('#FFFFFF', '', '%2', )
world.ColourTell('#CCCCCC', '', ' to the ')
world.ColourTell('#FFFFFF', '', '%3')
world.ColourNote('#CCCCCC', '', '. ')</send>
  </trigger>
</triggers>
[Go to top] top

Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Reply #1 on Thu 23 Apr 2009 06:03 AM (UTC)  quote  ]
Message
That is the proper behaviour with Send to Script (12). If you use Send to Script (after omit), you will not have this problem. I can't recall the number of that setting from bare memory tho.
[Go to top] top

Posted by LupusFatalis   (154 posts)  [Biography] bio
Date Reply #2 on Thu 23 Apr 2009 02:05 PM (UTC)  quote  ]
Message
Wow, I feel silly... I didn't even see that option. And here I was thinking I was going to have to hardcode everything into a script rather than having them on my trigger files...

Actually, there is a quick question. When I convert these triggers to plugins. And they go to script. Lets say python. If for some reason I set my default script to Lua later, will they stop working? Or does the plugin tell them to use python somewhere? (That is when they aren't in a separate .py file)
[Go to top] top

Posted by Worstje   Netherlands  (867 posts)  [Biography] bio
Date Reply #3 on Fri 24 Apr 2009 01:47 AM (UTC)  quote  ]
Message
Plugins have their scripting completely seperate from your world, thus adjusting the scripting language your world uses does not affect your plugins.

[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.


1,837 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

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

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]