View Single Post
  #7  
Old 06-20-2001, 01:25 AM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil will become famous soon enough
Send a message via ICQ to vergil
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);


Last edited by vergil; 06-20-2001 at 01:34 AM..
Reply With Quote