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
Jaiven
Wanderer


Joined: 03 Oct 2007
Posts: 66

PostPosted: Fri Jun 22, 2012 1:30 am   

Loading a .txt in cmud
 
Hello,
could anyone help me with loading a .txt (dirs for my script) in cmud? I am trying to do this from the ground up and having difficulty (Haven't done major coding on zmud for the mud I play in over 10 years... just been doing the upkeep as things change on it). Also, is there anything better than the help files on here that I can use. I have been trying to use those but #file doesn't seem to be working when I try to load a txt file (lets say amras). Basically, what I am trying to do it get that file loaded and then execute it based on room dir triggers to go to a room, load mobs into variables, trigger to kill until = 0, move onto next room when 0. That's the simplified version of how my zmud script worked.
Reply with quote
shalimar
GURU


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

PostPosted: Fri Jun 22, 2012 1:44 am   
 
i believe you want the #FILE command

#FILE 1 "such and such.txt"
Then you use the #READ and #WRITE commands.
_________________
Discord: Shalimarwildcat
Reply with quote
Jaiven
Wanderer


Joined: 03 Oct 2007
Posts: 66

PostPosted: Fri Jun 22, 2012 1:49 am   
 
Thank you. It was the #read command that I was missing. From here I believe I can do this. Thanks =D
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