yeah message() is the exact same as setcharprop
its just the equivalent in function like
NPC Code:
if (playerenters) {
function sayradiothing() {
setcharprop #c,#s(server.radio);
}
setstring server.radio,blah;
sayradiothing();
}
whereas sayradiothing() is just the exact same as message() so it doesnt matter whether you use message or setcharprop
anyone know how to supply the function definition an argument? i keep getting a syntax error =\
it would be really nice if you were doing lots of lines of messages with the same beginngin like a game show "And the question is..."
so you would be able to redefine message (orwhatevr you want it) as
NPC Code:
function gameshowquestion(beginning,end) {
message #v(beginning),#v(end);
}
setstring begin,"And the question is...";
setstring question1,"who is the president of the US?";
gameshowquestion(begin,question1);
setstring question2,"do you like cheese?";
gameshowquestion(begin,question1);