|
yared Beginner
Joined: 11 Dec 2003 Posts: 17 Location: Netherlands
|
Posted: Mon Dec 22, 2003 11:58 pm
How2 make ZMud read a variable |
V4.62
How to make zmud read a name stored in a variable?
example:
When I click the desired button that I made it:
#prompt Norak;#T+ Norak1
Then I want to gate the name in the prompt, but how to tell ZMud how to read the prompt.
Thx |
|
|
|
Toetag Magician
Joined: 10 Oct 2000 Posts: 356 Location: USA
|
Posted: Tue Dec 23, 2003 3:08 am |
you'll have to make a trigger for your prompt and populate variables.
for example:
< 89 HP | 90 MP >
Trigger:
~< (%d) ~| (%d) MP ~>
Value:
hp=%1
mp=%2
Look up Triggers, Pattern Matching in the help files. If that doesn't do it. Provide your prompt and many of us could help you with the proper pattern matching. |
|
|
|
Glinka Wanderer
Joined: 20 Dec 2000 Posts: 53 Location: USA
|
Posted: Tue Dec 23, 2003 6:08 am |
Not sure about this but,
I'm guessing the "gate" means to translocate or
use a "gate" spell on someone.
The button you made seems to open a class folder
called Norak1 and the variable Norak will hold the
name of a person to "gate"..?
If these things are true,
you may just be able to do something like this...
Cast gate at @norak
You can view the value stored in Norak by using the #Echo command
#echo Norak value is {@norak}
so in closing...
you push your button, it opens the Norak1 class folder
and gives you a prompt.
you could try something like this for your button...
#T+ Norak1
#echo Norak value is: {@norak}
#prompt Norak "enter new Norak value"
#wait 5000
#echo Norak value is now : {@Norak}
cast gate at @Norak
This wil give you 5 seconds to type in a name.
alternatively you could just make an alias called gate.
#ailas Gate (%x)
value:
@norak=%1
#echo Norak value is now: {@norak}
#T+ Norak1
cast gate at %1
>or cast gate at @Norak<
sorry, just tryin to help a lil,
G. |
|
|
|
yared Beginner
Joined: 11 Dec 2003 Posts: 17 Location: Netherlands
|
Posted: Wed Dec 31, 2003 12:14 am |
Both Glinka and Toetag thanks.
I realised that next time I need to be more transparant with my questions.
Didn't replied before coz I was still used to the old old forum that send an email when you had a reply :P
PS: Glinka hit the spot! :D |
|
|
|
|
|