|
whoever Novice
Joined: 13 Jun 2023 Posts: 33
|
Posted: 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. |
|
|
|
mikeC130 Apprentice
Joined: 03 Jul 2006 Posts: 110
|
Posted: 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. |
|
|
|
|
|