Hello,
I'm new to MUSH client and I've run into a situation. I have my directions all saved in a txt file from other another mud client (CMUD) where the directions are separated by semi-colons. The problem is that I have script commands in the txt file as well and they don't mix well so far in MUSHClient.
so for example as a test:
tested commands:
f = io.open ("runs\\\\100k.txt")
/Execute (f:read("*l"))
txt file:
2 nw;2 n;3 w;/Send ("hi")
I've noticed that the directions would execute properly with the command stacking operator, but the script commands wouldn't be processed as script commands and just sent to the mud unless the script commands were at the beginning of the line, but then any semi-colons error because the semi-colons aren't recognized in the scripting language.
The reason why I'm doing this is because I would like certain commands to easily be executed when entering certain rooms. Like updating target variables or other similar functions. Also I'm looking for an organized way of doing this. In the past I tried using conditional statements, but it got all crazy and convoluted especially if I had to modify my directions because all the conditional statements would need to be shifted, like room 23 became room 26, etc.
I also tried then having an extra line after each direction line in the file for script commands, but then the script commands couldn't be stacked in one line.
Any suggestions?
I'm new to MUSH client and I've run into a situation. I have my directions all saved in a txt file from other another mud client (CMUD) where the directions are separated by semi-colons. The problem is that I have script commands in the txt file as well and they don't mix well so far in MUSHClient.
so for example as a test:
tested commands:
f = io.open ("runs\\\\100k.txt")
/Execute (f:read("*l"))
txt file:
2 nw;2 n;3 w;/Send ("hi")
I've noticed that the directions would execute properly with the command stacking operator, but the script commands wouldn't be processed as script commands and just sent to the mud unless the script commands were at the beginning of the line, but then any semi-colons error because the semi-colons aren't recognized in the scripting language.
The reason why I'm doing this is because I would like certain commands to easily be executed when entering certain rooms. Like updating target variables or other similar functions. Also I'm looking for an organized way of doing this. In the past I tried using conditional statements, but it got all crazy and convoluted especially if I had to modify my directions because all the conditional statements would need to be shifted, like room 23 became room 26, etc.
I also tried then having an extra line after each direction line in the file for script commands, but then the script commands couldn't be stacked in one line.
Any suggestions?