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


Joined: 07 Feb 2002
Posts: 48
Location: Philippines

PostPosted: Thu Sep 04, 2003 2:31 am   

prompt and room name
 
my mud output looks like this:

<122/122b 592/592h 848/848n 713/713v 4%> The Cross Roads
You are at the intersection of the great eastern road. A dirt path leads
to the north toward a beautiful grove of trees. To the south an old path
leads south into the Kethlan hills. To the west you can see the outskirts
of the large walled city of Khavanov, while the great road known as the
Elder's Highway continues to the east to quieter and more dangerous lands.

[Exits: north east south west]

<122/122b 592/592h 848/848n 713/713v 4%>


#trigger {~<(*)~%~> (*)} {#tag prompt,name {%1} {%2}}

looking up %action from #var:
%action #tag prompt,name {122/122b 592/592h 848/848n 713/713v 4} {Outskirts of Khavanov}

after reconfiguring the automapper, i still can't get the name of the room to appear correctly as i create new rooms and instead the roomname will be the first line of the room description.
Reply with quote
megamog75
Enchanter


Joined: 20 Nov 2002
Posts: 627
Location: USA

PostPosted: Thu Sep 04, 2003 3:56 pm   
 
I will not say your on the wrong path.
Try to take the above example and make a trigger to just capture te room name to a variable then tag the variable to the name.
Reply with quote
mastersonc
Newbie


Joined: 16 Aug 2006
Posts: 3

PostPosted: Sat Sep 02, 2006 5:56 am   
 
Ok my problem is more basic, I am not even tring to get to use the mapper yet, I am just tring to get the room name in a veriable
this is my line so far with my prompt from the mud
~<(%d)~/(%d)hp%s(%d)~/(%d)m%s(%d)~/(%d)mv%s(%d)gp%s
<1123/1123hp 780/780m 372/372mv 10261gp [Around the fire] (S)>

#var curhp %1
#var maxhp %2
#var curmana %3
#var maxmana %4
#var curmv %5
#var maxmv %6
#var gold %7
#var curroom @w
#if @onPROMPT=1 {
po safety
#var onPROMPT 0
#var lostcon {c port safety}
}
#if @onPROMPT=2 {
po tarabon merchant
#var onPROMPT 0
#var lostcon {c port tarabon merchant}
}
#if @onPROMPT=3 {
po stout cook
#var onPROMPT 0
#var lostcon {c port stout cook}
}
#if @onPROMPT=4 {
c haste
#var onPROMPT 0
#var lostcon {c haste}
}
I am unable to get the room name in a #var PLEASE HELP
As you can see this is part of a bot script I am working on, but only so I can understand how this works
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