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 ➜ omit from output

omit from output

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


Posted by Zendu   (66 posts)  Bio
Date Tue 11 May 2004 10:30 PM (UTC)
Message
I have a trigger based on "you have slain a young rat"
SetVariable "ratcount", CInt (GetVariable ("ratcount")) + 1
SetVariable "ratcash", CInt (GetVariable ("ratcash")) + 20
world.Note "You have now slain " & GetVariable ("ratcount") & " rats, worth " & GetVariable ("ratcash")

basically its to let me know how much cash ive made so far. However, if i make a trigger with a higher sequence to omit the "you have slain a young rat" it also omits my world.note. I cant figure out how to make it work.

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
Top

Posted by Ked   Russia  (524 posts)  Bio
Date Reply #1 on Wed 12 May 2004 03:45 AM (UTC)
Message
Make 2 triggers for the same line, have trigger with a higher sequence (99) send those commands directly to scripting and set it to keep evaluating, the second trigger with a lower sequence (100) should omit from output.
Top

Posted by Zendu   (66 posts)  Bio
Date Reply #2 on Wed 12 May 2004 08:33 AM (UTC)
Message
i had one (110) it also omited my world.sendnote

God im helpless
Currently using MushClient 3.46 on Win Xp pro on [url=www.aetolia.com]Aetolia[/url]
Top

Posted by Nick Gammon   Australia  (23,132 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 12 May 2004 10:26 PM (UTC)
Message
Read this post:


http://www.gammon.com.au/forum/?bbsubject_id=4161


It describes how if you omit from output in a trigger it also omits world.notes.

The solution is to call a script in a script file, not "send to script" - then it won't be omitted.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
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.


16,166 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.