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
whoever
Novice


Joined: 13 Jun 2023
Posts: 33

PostPosted: Wed Jun 28, 2023 7:40 pm   

How to get value of for instance %w
 
I play on a mud which has a mob called 'Rahnkara' which you want to follow

So the mud echoes:
"Rahnkara the Highpriestess leaves south"
then you want to do 'south' as command

seems simple but I cannot get it to work

I have tried using Rahnkara the Highpriestess leaves %w as trigger, which works

But then as command: %1 does nothing.

Tried Rahnkara the Highpriestess leaves &{direction}

and then as command:
&direction

same thing.. so how do I do this?

p.s. the zmud help doesn't work either on win 10.
Reply with quote
mikeC130
Apprentice


Joined: 03 Jul 2006
Posts: 108

PostPosted: Thu Jun 29, 2023 2:24 pm   
 
%w on its own will be used to determine whether the trigger is matched and fires, but it doesn't capture anything. You need to put parentheses around what you wish to capture, in this case your trigger would be Rahnkara the Highpriestess leaves (%w)

After that, the word after leaves will be available to you via %1.
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