Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Leyline
Wanderer


Joined: 03 Feb 2007
Posts: 64

PostPosted: Thu May 07, 2020 2:50 pm   

Quick menu item I had to make a trigger is not working like it used to.
 
So I have a quickmenu item that adds a trigger...

#trigger {<%selline>} {doHunt <%selword>} AutoHunt|@autoHuntZone
#say @autoHuntZone - Hunt Added %selword - %selline

@autoHuntZone is "NewZone"
and all of this used to work flawlessly...
I've come back a few years later since I mudded and now when I highlight a word, and right click and Choose Add to Hunt
it all "almost" works....

Example:
A dwarven stagehand is here going about his business.
(I highlight stagehand)

it creates a trigger
A dwarven stagehand is here going about his business.
with the action of:
dohunt <%selword>

(it should be making the action: dohunt stagehand )

and then it shows me via #say
NewZone - Hunt Added stagehand - A dwarven stagehand is here going about his business.


So the question is, if not when zmud changed the operation of using %selword to make a trigger, but really, how to fix it.
I have tried <{%selword}> %%selword %{selword} I just can't get it to work inside the trigger...

Thanks!

Edit: P.S.
if I right click any word, and I manually use this command:
#trigger {<%selline>} {doHunt %selword} AutoHunt|@autoHuntZone

it works.
it makes the trigger action: dohunt stagehand

it just does not seem, to work from the quick menu, it also does not work if I make an alias addHunt
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4662
Location: Pensacola, FL, USA

PostPosted: Fri May 08, 2020 1:56 am   
 
Cobble it together with %concat, then #EXEC it:

#EXEC %concat("#TRIGGER {", %selline, "} {dohunt ", %selword, "} {AutoHunt|", @autoHuntZone, "}")
_________________
Discord: Shalimarwildcat
Reply with quote
Leyline
Wanderer


Joined: 03 Feb 2007
Posts: 64

PostPosted: Mon May 11, 2020 9:07 pm   
 
Hey thanks for the reply!

I had found this "cludge"; it stunk to have to do more steps, but at least it got all the stuff typed out.

#input {#trigger {%selline} {doHunt %selword} AutoHunt|@autoHuntZone}


The concat works without having to hit enter on the input line thanks!

#EXEC %concat("#TRIGGER {", %selline, "} {dohunt ", %selword, "} {AutoHunt|", @autoHuntZone, "}")
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net