Thread: join command
View Single Post
  #12  
Old 12-11-2001, 05:54 AM
KJS KJS is offline
The one, The only -
KJS's Avatar
Join Date: Apr 2001
Location: USA, Minnesota
Posts: 1,012
KJS is on a distinguished road
Send a message via AIM to KJS
Quote:
Originally posted by jeff335
I wonder...could join be used with lists of functions, like:

in every npc, if(created){join standard_funcs;}

in NPCs in area Bomboria, if(created){join bomboria_funcs;]

?
you could do that....

You dont need to put it in any functions...

here is an example of how I use it...

NPC Code:

if (created) {
this.maxflakes = 100;
}
join snow;



I have the join outside of any if statements because when you join it its putting all the coding that you have from whats in that class file into the npc (not really putting it into it but thats how it reads the script)
__________________
Thanks,
-KJL