View Single Post
  #6  
Old 01-10-2002, 08:15 PM
WHIPENIE4 WHIPENIE4 is offline
I am X-Mann
Join Date: Aug 2001
Location: PA
Posts: 2,715
WHIPENIE4 is on a distinguished road
Send a message via ICQ to WHIPENIE4 Send a message via AIM to WHIPENIE4
[screen_name says:]

so would this following code be considered good use of the return command

NPC Code:

// NPC made by screen_name
// NPC Name: N/A
// Project: N/A

if (playersays(doit)) {
setplayerprop #c, ;
doingit();
setplayerprop #c, this.counter was equal to #v(this.counter);
}

function doingit() {
this.counter=int(random(0,5));
return;
}



now this will make you say this.counter's value without having to say 'doit' again, right


so, if you are using functions in a timeout, you dont necessarily need returns right?? unless something below is using the new value??
__________________
Mind over Matter. If your body dont mind, why does it matter?

- X-Mann (Blessing Graal since 1998) Haha

- Graal 2000 Project (Contact Me to get Apart of this expierience

Windows Vista. Graal. Not a Good Combination.
Reply With Quote