Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » CMUD General Discussion
septantrionalis
Newbie


Joined: 19 Apr 2022
Posts: 3

PostPosted: Tue Apr 19, 2022 7:23 pm   

Creating an exit on the map based on a trigger
 
I am having a hard time figuring this out. I want to create an exit on the map based on a trigger I've created. Boiled down, I want to issue a command like this :

#EXIT e

and just have it create an exit on the map. Obviously, this command doesn't exit. The #DOOR command is about as close as I can get :

#DOOR e

However, I dont want to create the door. I just want an exit. I've tried messing around with the #TAG command, but this appears to do nothing for me :

#TAG exit e

Anyone have any ideas how I can do this? What am I missing here.
Reply with quote
mikeC130
Apprentice


Joined: 03 Jul 2006
Posts: 110

PostPosted: Wed Apr 20, 2022 8:38 pm   
 
For the #TAG command, try putting the e in parentheses, i.e. #TAG exit (e) or #TAG exit ("e") and see if that does anything for you. If your trigger actually captures the "e" from the text and saves it, you can include it inside the (), as in (%1) if it is the first variable captured.
Reply with quote
septantrionalis
Newbie


Joined: 19 Apr 2022
Posts: 3

PostPosted: Wed Apr 20, 2022 9:30 pm   
 
I tried :

#TAG exit ("e")
#TAG exit (e)
#TAG exit e
#TAG exit ("east")
#TAG exit (east)
#TAG exit east

I also double checked to make sure the map was in "edit" mode. None of these commands create an exit to the east. :(
Reply with quote
shalimar
GURU


Joined: 04 Aug 2002
Posts: 4691
Location: Pensacola, FL, USA

PostPosted: Thu Apr 28, 2022 11:18 pm   
 
#CALL %roomexit(,%additem(%roomexit, "e"))
_________________
Discord: Shalimarwildcat
Reply with quote
septantrionalis
Newbie


Joined: 19 Apr 2022
Posts: 3

PostPosted: Tue May 10, 2022 2:04 pm   
 
shalimar wrote:
#CALL %roomexit(,%additem(%roomexit, "e"))


Boom! That worked! Thanks.
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » CMUD 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