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
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Thu Apr 08, 2004 10:43 pm   

Automapper and Variable Qs
 
Q 1 (Automapper) : My MUD output for rooms looks like this -

[18653] Near Some Light [ NOBITS ]
You are in an unfinished room.
[ Exits: n s ]

I want it to capture the 18653 as the room number and Near Some Light as the name. I also want it to capture You are in an unfinished room as the desc. Currently it ignores the top line, gets the exits right, but makes You are in an unfinished room the name.

Q 2 (Variables) : How do I make an alias use more than one variable?

I want 'create x1,x2,x3,x4,x5' where x is the variable and the number next to it is what number variable to send

redit 186x1
1
x3
3
x4
0
4
x5
q
yes
dig x2 186x1

Thats my Qs today :P
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Thu Apr 08, 2004 11:28 pm   
 
To fix your mapper problem make this trigger and reconfigure the mapper
Note: You might also have to #TAG your prompt

#TRIGGER {[(%d)] (*) ~[*~]} {#TAG vnum {%1};#TAG name {%2}}

And as for your second question if I am reading it right something simple would be this

#AL Change {do this with %1;and this with %2}

NOTES:
%1=first param
%2=second param
%99=99th Param
%-1=use everything
%-2=use everything after %1


example usage:
change 34543 indoors
will output
do this with 34543
and this with indoors

#ALIAS {}
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Mon Apr 12, 2004 11:32 pm   
 
that didnt work at all...

EDIT:the alias neway, havent tested the other thing yet
[b]EDIT2: The trigger doesnt work either. I put it in map script inside of map properties, was that where it was supposed to go?

i did exactly what you said, made my alias this:

#ALIAS create %1,%2,%3,%4,%-5 {redit 186%1;3;%2;0;1;4;%4;%-5;dig %5 186%1}

and it doesnt work
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Tue Apr 13, 2004 1:04 am   
 
almost correct but remove them from your pattern Also you will need spaces not commas (with commas it gets a bit triker but can be done (see below)

#ALIAS create {redit 186%1;3;%2;0;1;4;%4;%-5;dig %5 186%1}

paste this into your command line hit enter then reconfigure mapper
#TRIGGER {[(%d)] (*) ~[*~]} {#TAG vnum {%1};#TAG name {%2}}

If you wish to keep using commas in the alias try this one *Tested*
#ALIAS create {redit 186%word("%1",1,",");3;%word("%1",2,",");0;1;4;%word("%1",4,",");%word("%1",5,",");dig %5 186%word("%1",1,",")}
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Wed Apr 14, 2004 1:24 am   
 
The map part didn't work.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Apr 14, 2004 2:29 am   
 
#TRIGGER {~[(%d)~] (*) ~[*~]} {#TAG vnum {%1};#TAG name {%2}}


*whap self* fixed (added a few ~'s)
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun Apr 18, 2004 5:42 am   
 
Still doesn't work.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Sun Apr 18, 2004 7:51 am   
 
Did you reconfigure?
Reply with quote
Loto
Apprentice


Joined: 05 May 2003
Posts: 194

PostPosted: Sun Apr 18, 2004 5:15 pm   
 
yes
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