|
Jaiven Wanderer
Joined: 03 Oct 2007 Posts: 66
|
Posted: 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. |
|
|
|
shalimar GURU
Joined: 04 Aug 2002 Posts: 4691 Location: Pensacola, FL, USA
|
Posted: 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 |
|
|
|
Jaiven Wanderer
Joined: 03 Oct 2007 Posts: 66
|
Posted: 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
|
|
|
|
|
|