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 ➜ VBscript ➜ Disable a trigger for 1 second

Disable a trigger for 1 second

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


Posted by WRTIII   Canada  (76 posts)  Bio
Date Wed 11 Jun 2003 11:07 PM (UTC)
Message
I have a problem with that a trigger matches on all the items and trys to get them when I view my inventory
So I want to make an alias for INV
so when I type INV it disables my item getting trigger for 1 second
That will prevent it from matching when I view my inventory

If anyone has any better ideas please feel free to share them.
Thanks WRTIII

Only way I can think to do it is to make a script so that when I type INV it disables the trigger and starts a timer that runs after 1 second to reenable the trigger.. but there must be an easier way?
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #1 on Thu 12 Jun 2003 07:10 AM (UTC)
Message
I seem to recall answering a similar question recently.

Can you post example output? Sounds like you should be able to tell the difference between things on the ground an in your inventory. eg. On the ground it might be "you see a X".


- Nick Gammon

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

Posted by WRTIII   Canada  (76 posts)  Bio
Date Reply #2 on Sun 15 Jun 2003 12:28 AM (UTC)
Message
l
Place de Greve.
All about you is wreathed in shadows. The Rue de la Tannerie is to the east.
The Rue de la Vanerie is to the south-east. The Rue de la Tifferanderie is to
the south. Nearby to your west is the entrance of the Hotel de Ville. You
could progress eastwards, southeastwards, southwards. In your immediate
vicinity you see a merchant, a stone water fountain, a guillotine and a
sturdy stockade.
*
walk east
You begin to walk eastwards.
*
You walk eastwards.
Rue de la Tannerie.
All about you is wreathed in shadows. The Rue St. Mederic des Assis St.
Jacques is to the east. The Place de Greve is to the west. You could progress
eastwards, westwards. You see a piece of iron ore ahead of you.
*
You walk eastwards.
Rue de la Tannerie.
All about you is wreathed in shadows. The Rue St. Mederic des Assis St.
Jacques is to the east. The Place de Greve is to the west. You could progress
eastwards, westwards. You see a piece of iron ore ahead of you.
*
You walk eastwards.
Rue de la Tannerie.
All about you is wreathed in shadows. The Rue St. Mederic des Assis St.
Jacques is to the east. The Place de Greve is to the west. You could progress
eastwards, westwards. You see a piece of iron ore ahead of you.
*
You walk eastwards.
Rue de la Tannerie.
All about you is wreathed in shadows. The Rue St. Mederic des Assis St.
Jacques is to the east. The Place de Greve is to the west. You could progress
eastwards, westwards. In your immediate vicinity you see a piece of iron ore.
*
get ore
You take a piece of iron ore.
*
You walk eastwards.
Rue St. Mederic des Assis St. Jacques.
All about you is wreathed in shadows. The Rue St. Mederic des Assis St.
Jacques continues to the south. The Pont Notre Dame is to the north. The Rue
de Geur is to the east. The Rue de la Tannerie is to the west. You could
progress northwards, eastwards, southwards, westwards.
*
STOP
You stop moving.
*
i
You wield nothing.
You are carrying a wooden pail, a tulip bulb, polished black leather shoes
with silver buckles, two livres, nineteen crossbow bolts, an iron tinderbox,
a tiny ball of wax, a dull brass lantern, two potion bottles, an oil tin,
fifteen gold ecus, two silver ecus, four hundred and thirty one Louis d'ors,
a crossbow, a leather flask and a piece of iron ore.
You are wearing knee-high boots of obsidian-black leather, a pure-white linen
shirt with billowing sleeves and tapered cuffs, pleated steel-blue satin
breeches and black wool socks.
Your load is 31 pounds.
*


Ok So there is a carriage return at the end of everyline
You have to be in somethins immediate vicinity to get it
you can use WALK dir to walk continuiosly or just dir to go one step.. but one step will not always take you the same distance.. you may go east once but then have to go west west to get back to where you started.. the whole thing is "dynamic?" like that whichs I find makes it very difficult to work with when dealing with scripts etc.

WRTIII
Top

Posted by Nick Gammon   Australia  (23,165 posts)  Bio   Forum Administrator
Date Reply #3 on Mon 16 Jun 2003 03:26 AM (UTC)
Message
Looks quite interesting, which MUD is it?

I think you would have to look for "In your immediate vicinity" however the fact that it can be split over multiple lines is a problem.

You probably need some sort of multiple-line capturing trigger (do you really get those asterisks?) - you would assemble the full descrption in memory, and then scan it for "In your immediate vicinity" and look for things after that, that you might be able to pick up.

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


14,073 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.