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
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Mon Jan 12, 2009 5:42 am   

LUA print in color
 
How the heck do you print something in color in LUA in Cmud? The help files are weak.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Mon Jan 12, 2009 6:27 am   
 
zs.show(zs.ansi("high","red") .. "lol!")
zs.show("<color 'red'>lol!</color>")
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Mon Jan 12, 2009 8:06 am   
 
Ah I was trying to do:

print(zs.ansi("high","red") .. "lol!")
Reply with quote
oldguy2
Wizard


Joined: 17 Jun 2006
Posts: 1201

PostPosted: Mon Jan 12, 2009 5:17 pm   
 
Okay how do you do substitute in LUA?

I tried the follow:

zs.substitute("")
zs.cmd.substitute("")

Neither one works.
Reply with quote
Fang Xianfu
GURU


Joined: 26 Jan 2004
Posts: 5155
Location: United Kingdom

PostPosted: Tue Jan 13, 2009 3:12 am   
 
Both zs.substitute() and zs.sub() are working fine here.
_________________
Rorso's syntax colouriser.

- Happy bunny is happy! (1/25)
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