|
Leyline Wanderer
Joined: 03 Feb 2007 Posts: 64
|
Posted: 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 |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4692 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Leyline Wanderer
Joined: 03 Feb 2007 Posts: 64
|
Posted: 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, "}") |
|
|
|
|
|
|
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
|
|