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
yared
Beginner


Joined: 11 Dec 2003
Posts: 17
Location: Netherlands

PostPosted: 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
Reply with quote
Toetag
Magician


Joined: 10 Oct 2000
Posts: 356
Location: USA

PostPosted: 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.
Reply with quote
Glinka
Wanderer


Joined: 20 Dec 2000
Posts: 53
Location: USA

PostPosted: 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.
Reply with quote
yared
Beginner


Joined: 11 Dec 2003
Posts: 17
Location: Netherlands

PostPosted: 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
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