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
marsonije
Newbie


Joined: 28 Feb 2020
Posts: 4

PostPosted: Thu Mar 12, 2020 2:38 pm   

Script command or function to delete a room?
 
1) Is there such?

I could not find it.

I need to delete some rooms programmatically when initializing a quest, via trigger.

I also need to relink rooms via script but first delete existing links.

2) Is there a way to do it? %roomexit(vnum, "") seems to do nothing, like the empty string is not considered at all
actually it seems that %roomexit is only adding exits, it cannot delete an existing one.

3) I would also need to enable map creation mode from script, that is toggle from follow to creation and back
Reply with quote
shalimar
GURU


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

PostPosted: Fri Mar 13, 2020 10:35 pm   
 
2 and 3, yes, as follows:

#CALL %maplocked(0)
#CALL %roomexit(vnum, "")
#CALL %maplocked(1)

No way to do 1 that I am aware of.
_________________
Discord: Shalimar#3679
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