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


Joined: 28 Oct 2000
Posts: 24
Location: USA

PostPosted: Tue Nov 07, 2006 2:40 am   

Need help capturing a room name for a variable
 
I'm trying to capture a room name, Store it in a variable, Then relay the info to clannies.

The problem I have is storing it to a variable.

Here is an example of a scrye attempt:

cast scrye mordrek
Shadow Thieves Commons [SAFE]
You appear to be in a large, dimly lit cavern. The ground is
lightly covered in white sand, and huge torches cast long shadows
along the walls. In the center of the room, a large granite podium
rises from the ground, bearing the seal of the Shadow Thieves. Secret
tunnels and passageways lead out in every direction from the Commons,
helping the Thieves to complete their daily routines and missions.

[Exits: down] [Doors: none]
An azure blue healing aura floats here, welcoming the weary Shadow Thief.
[..C.........] A black Jaguar paces defensively around its master.
[..C.........] A cave bear sits here awating its masters command.
[...T........] Mordrek |- is here.
Vysmund. is here.

<9345/9345hp 6942/8385mana 785/1134move 318155Exp/3145Lvl>
<Align:-101 QCurrent:0 QNext:0><Shrine of Talos><U>


So I am trying to capture the first line:
Shadow Thieves Commons [SAFE]
and store it into a variable, Which I can then say or channel to others.

Can anyone help me with this? Thank you.
_________________
When the world needs a hero...
Rexxon the Mighty.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: Tue Nov 07, 2006 4:36 am   
 
Do all your room names have a [stuff] at the end?
_________________
EDIT: I didn't like my old signature
Reply with quote
Rexxon
Beginner


Joined: 28 Oct 2000
Posts: 24
Location: USA

PostPosted: Wed Nov 08, 2006 2:17 am   
 
No, Not necessarily.

What I had originally planned on doing was trying a capture to automatically capture the first line after I typed my alias, Then storing it into a variable. I don't know how to do that, However.
_________________
When the world needs a hero...
Rexxon the Mighty.
Reply with quote
nexela
Wizard


Joined: 15 Jan 2002
Posts: 1644
Location: USA

PostPosted: Wed Nov 08, 2006 7:40 pm   
 
Multistate oninput trigger might do it. very basic example


#ONINPUT {^cast scrye (*)} {cast scrye %1}
#COND {^(*)} {Roomname="%1"}
_________________
Zmud Support Library
Zmud Knowledge Base
Reply with quote
Rexxon
Beginner


Joined: 28 Oct 2000
Posts: 24
Location: USA

PostPosted: Thu Nov 09, 2006 1:56 am   
 
It doesn't appear to work.

When I try to type each line seperatley, The #COND line does nothing.

When I try to put the #COND in the #ONINPUT trigger, It captures the name of the person I'm scrying and puts it into the variable ROOMNAME.

Any suggestions?
_________________
When the world needs a hero...
Rexxon the Mighty.
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