 |
oldguy2 Wizard
Joined: 17 Jun 2006 Posts: 1201
|
Posted: Sat Jan 31, 2009 3:44 am
Print...Lua vs Zscript |
Why is the Lua print function mapped to the zscript #say or #echo and not to #print? It would be a lot easier the other way around so I don't have to use zs.print("blah blah") and could just do print("blah blah"). I don't want print to fire triggers. I just want to use print() to print messages to the screen. If I wanted to test triggers, I would use zs.show(). So basically I have to use zs.print() so it bypasses checking all the triggers.
|
|
|
 |
Fang Xianfu GURU

Joined: 26 Jan 2004 Posts: 5155 Location: United Kingdom
|
Posted: Sat Jan 31, 2009 1:20 pm |
Because #print didn't exist when print() was created. And I'm sure there're also people who want print() to be able to fire triggers - if you want that behaviour, it's not that much hassle to type three extra characters. It's not like it's broken.
|
|
|
 |
|
|