 |
emnaki Wanderer
Joined: 12 May 2007 Posts: 59
|
Posted: Sat May 12, 2007 3:00 pm
Problem converting these script to CMUD |
The compatibility report says that I have the following two problems.
Code: |
#LO {@enemy"_fight.txt"} |
Does not compile.
Also
Code: |
#file 1 {@convpath"%1_tell.txt"} |
Does not compile. Changing it to below does not work:
Code: |
#file 1 {%1"_tell.txt"} |
Some help would be greatly appreciated. |
|
|
 |
MattLofton GURU
Joined: 23 Dec 2000 Posts: 4834 Location: USA
|
Posted: Sat May 12, 2007 3:35 pm |
You may need to use %concat() instead of variable"literal".
|
|
_________________ EDIT: I didn't like my old signature |
|
|
 |
emnaki Wanderer
Joined: 12 May 2007 Posts: 59
|
Posted: Sat May 12, 2007 4:02 pm |
Alright, the commands work if I remove the surrounding {}. So this was changed from ZMud? Why is that?
|
|
|
 |
Zugg MASTER

Joined: 25 Sep 2000 Posts: 23379 Location: Colorado, USA
|
Posted: Sat May 12, 2007 7:18 pm |
As Matt mentioned, the proper syntax is:
Code: |
#LO %concat(@enemy,"_fight.txt")
#FILE 1 %concat(@convpath,%1,"_tell.txt")
#FILE 1 %concat(%1,"_tell.txt") |
The "implied" concat that you are trying to use is left-over syntax from zMUD and only works in certain situations in CMUD and isn't recommended in most cases. It was changed because CMUD has a more formal script parser that has a more standarized syntax, which doesn't allow some of the weird syntaxes that sometimes worked in zMUD. |
|
|
 |
|
|