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 (21,609 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.
4,064 views.
It is now over 60 days since the last post. This thread is closed.
 
Refresh page
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.