About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 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
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: 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.
Reply with quote
MattLofton
GURU


Joined: 23 Dec 2000
Posts: 4834
Location: USA

PostPosted: 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
Reply with quote
emnaki
Wanderer


Joined: 12 May 2007
Posts: 59

PostPosted: 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?
Reply with quote
Zugg
MASTER


Joined: 25 Sep 2000
Posts: 23379
Location: Colorado, USA

PostPosted: 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.
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