Idea : Horse dismount tracking script

... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
byrg
Posts: 380
Joined: Fri Aug 07, 2015 8:56 pm

Re: Idea : Horse dismount tracking script

Post by byrg » Sat Aug 27, 2016 1:13 am

 
Last edited by byrg on Tue Aug 26, 2025 11:35 am, edited 1 time in total.

byrg
Posts: 380
Joined: Fri Aug 07, 2015 8:56 pm

Re: Idea : Horse dismount tracking script

Post by byrg » Sat Aug 27, 2016 1:25 am

 
Last edited by byrg on Tue Aug 26, 2025 11:37 am, edited 1 time in total.

Taziar
Posts: 961
Joined: Sat Mar 21, 2015 10:28 pm

Re: Idea : Horse dismount tracking script

Post by Taziar » Sat Aug 27, 2016 1:58 am

Couple things I noticed....
First off never use #WAIT command... can do some bad things and is a known bug in zMud. Instead use #ALARM to create time related triggers.
Second, when using #ONINPUT the way you did any time in any part of an input that contains the word ride will trigger. Need to use ^ and $ to manage them fully.. which can be challenging.

Examples:

#ONINPUT {ride} {quit}

typing: I like to ride my horse

This would quit you out of the game.

#ONINPUT {^ride} {quit}

typing: I like to ride my horse

Should not trigger... but typing ride with anything after it will. This will be the best use for the script I think.

#ONINPUT {^ride$} {quit}

typing: ride

Only typing ride by itself will send the quit command. Use this style for the dism command.

byrg
Posts: 380
Joined: Fri Aug 07, 2015 8:56 pm

Re: Idea : Horse dismount tracking script

Post by byrg » Sat Aug 27, 2016 2:04 am

 
Last edited by byrg on Tue Aug 26, 2025 11:35 am, edited 1 time in total.

Taziar
Posts: 961
Joined: Sat Mar 21, 2015 10:28 pm

Re: Idea : Horse dismount tracking script

Post by Taziar » Sat Aug 27, 2016 2:07 am

Yeah, think #WAIT works in cMud... reading the forums at one point it has to do with the fact that cMud is multi threaded and zMud isn't... something like that. I didn't fully comprehend the reasoning but I quit using the command after reading some of the forum posts about it and how it doesn't work as intended in zMud. Think it was Zugg that recommend using alarms instead.

just FYI...
Looking at the following two pages closely shows why not to use #WAIT in zMud.

zMud #WAIT command description http://forums.zuggsoft.com/modules/mx_k ... =doc&k=423
cMud #WAIT command description http://forums.zuggsoft.com/modules/mx_k ... =3&a=%23WA
Last edited by Taziar on Sat Aug 27, 2016 2:17 am, edited 1 time in total.

byrg
Posts: 380
Joined: Fri Aug 07, 2015 8:56 pm

Re: Idea : Horse dismount tracking script

Post by byrg » Sat Aug 27, 2016 2:16 am

 
Last edited by byrg on Tue Aug 26, 2025 11:35 am, edited 1 time in total.

byrg
Posts: 380
Joined: Fri Aug 07, 2015 8:56 pm

Re: Idea : Horse dismount tracking script

Post by byrg » Sat Aug 27, 2016 2:22 am

 
Last edited by byrg on Tue Aug 26, 2025 11:37 am, edited 1 time in total.

Taziar
Posts: 961
Joined: Sat Mar 21, 2015 10:28 pm

Re: Idea : Horse dismount tracking script

Post by Taziar » Sat Aug 27, 2016 2:34 am

Using ^ and $ in the #ONINPUT trigger only affect pattern matching for what is typed into the command line.

If you do #ONINPUT {^dism$} then only typing: dism (and then enter) will trigger. If you leave off the ^ in front then something like asdfasdgdism (enter) will trigger.

Not 100% sure if this matters but I would remove {} around the +3 after the #ALARM... think it should be...

#ALARM +3 {#T- {RideTrigger}}

byrg
Posts: 380
Joined: Fri Aug 07, 2015 8:56 pm

Re: Idea : Horse dismount tracking script

Post by byrg » Sat Aug 27, 2016 2:37 am

 
Last edited by byrg on Tue Aug 26, 2025 11:35 am, edited 1 time in total.

byrg
Posts: 380
Joined: Fri Aug 07, 2015 8:56 pm

Re: Idea : Horse dismount tracking script

Post by byrg » Sat Aug 27, 2016 2:41 am

 
Last edited by byrg on Tue Aug 26, 2025 11:35 am, edited 1 time in total.

Post Reply