|
WinterDragon Newbie
Joined: 25 Apr 2003 Posts: 5 Location: USA
|
Posted: Fri Apr 25, 2003 6:10 pm
Executing N.Line from File? |
Ok lets say i do read the first line from a file such as...
#FILE 1 rooms.txt
#READ 1 @roomcount
Will read whatever @roomcount is correct? so if roomcount is 1, it will read the first line...
now how do I execute the command stored in the first line? or whatever line the script is on currently? Thanks again for any help. |
|
|
|
Talahaski Enchanter
Joined: 10 Oct 2000 Posts: 656 Location: USA
|
Posted: Fri Apr 25, 2003 6:27 pm |
try this instead.
#FILE 1 rooms.txt
%read(1,1)
Syntax is %read(filenumber,recordnumber)
if you leave record number it just takes the next sequential line from the file.
You may want to read up on #SEND, #READ, %READ.
Talahaski
Processor PIII 1000
Memory 265MB
Video NVIDIA 64MB
Windows XP
Zmud Version 6.56
Zmapper Version 1.14
http://www.dartmud.com |
|
|
|
|
|
|
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
|
|