... A place to ask for help on any topic whether it be starting out to player killing to IT issues.
-
Taziar
- Posts: 961
- Joined: Sat Mar 21, 2015 10:28 pm
Post
by Taziar » Sat Aug 27, 2016 3:09 am
byrg wrote:
Nice. Really need to read up on these more, evidently - thanks for all the help with this!
Also - the bracket difference is apparently a zmud/cmud one as well - the zmud doc shows it as you posted, the cmud doc the way I wrote - translating this back to zmud is still throwing me off a bit!
Anytime, this is more fun than playing....
I just bought cMud, so eventually when I transfer everything over I will need to read up on the cMud stuff

-
byrg
- Posts: 394
- Joined: Fri Aug 07, 2015 8:56 pm
Post
by byrg » Sat Aug 27, 2016 3:40 pm
Couple small changes/fixes: added a rent oninput to essentially forgethorse when you rent, so we dont end up with green rooms all over from dism and renting. Also changed the order the riding trigger fires, so it's only unlocking the map if there are changes to be made, rather than unlocking the map, processing an if statement, and then relocking the map.
EDIT: fixed a typo.
Code: Select all
#CLASS {RandomHorseThing}
#VAR lonelyhorse 0
#VAR startingcolor ""
#TRIGGER DismTrigger {you stop riding %1} {#VAR startingcolor %roomcol();#CALL %maplocked( 0);#CALL %roomcol(,lightgreen);#CALL %maplocked( 1);#VAR lonelyhorse %mapvnum();#T- {DismTrigger}} RandomHorseThing disable
#TRIGGER RideTrigger {you start riding %1} {#IF (@startingcolor = "") {} {#CALL %maplocked( 0);#CALL %roomcol(@lonelyhorse,@startingcolor);#CALL %maplocked( 1)};#VAR startingcolor "";#VAR lonelyhorse 0;#T- {RideTrigger}} RandomHorseThing disable
#ONINPUT {^ride} {#T+ {RideTrigger};#ALARM +3 {#T- {RideTrigger}}}
#ONINPUT {^dism$} {#T+ {DismTrigger};#ALARM +3 {#T- {DismTrigger}}}
#ONINPUT {^rent$} {#T+ {RHTRent};#ALARM +3 {#T- {RHTRent}}}
#TRIGGER RHTRent {%1 stores your belongings and helps you into your private chamber.$} {#IF (@startingcolor = "") {} {#CALL %maplocked( 0);#CALL %roomcol(@lonelyhorse,@startingcolor);#CALL %maplocked( 1)};#VAR startingcolor "";#VAR lonelyhorse 0} RandomHorseThing disable
#ALIAS horseloc {#ECHO %ansi(green) You left a horse: %replace(%pathexpand(%pathfrom(,@lonelyhorse)),"|",";")}
#ALIAS gotohorse {#WALK @lonelyhorse}
#ALIAS forgethorse {#CALL %maplocked( 0);#CALL %roomcol(@lonelyhorse,@startingcolor);#CALL %maplocked( 1);#VAR lonelyhorse 0;#VAR startingcolor ""}
#CLASS 0
-
Tran
- Posts: 84
- Joined: Sat Apr 30, 2016 1:49 pm
Post
by Tran » Sun Aug 28, 2016 12:07 am
So! I have been playing, smobbing and Pking and I LOVE this script! It's everything and more than I could have imagined possible!
And thank you for putting so much work into my silly idea of a horse tracking script that turned into something amazing!
I've been able to reward Byrg with 1000 gold crowns and am waiting to see Taziar to reward him also. But special thanks go out to Ali and Yeri for sharing thoughts and ideas, thank you very much.
*Tran pats down his wild stallion and smiles as he fingers the GPS tracking device on it's neck! "Never shal you be lost again!"
-
byrg
- Posts: 394
- Joined: Fri Aug 07, 2015 8:56 pm
Post
by byrg » Mon Aug 29, 2016 1:14 am
Glad we were able to make this work out - Thanks again to Taziar for all the help getting this to work correctly on zmud - lot of little oddities there I wasn't expecting!
-
Yeri
- Posts: 109
- Joined: Sat May 23, 2015 4:26 am
Post
by Yeri » Tue Aug 30, 2016 12:23 am
Glad I was able to contribute some thoughts and debugging - big thanks to Taziar and Byrg for putting in the hard work to create the script and do the fine-tuning and bugfixing as necessary.
Happy to see this came to something after all - sorry I wasn't able to help more, my time is a little limited (and unlike most of you turkeys, I can't play at work!). Fun to learn more about Zmud scripting though, I really like the way this ended up turning out and the way the script handles things.