Jump to content

Is a single LONG GameMode script better or should they be split up?


Guest Messenjah

Recommended Posts

Guest Messenjah

So I need to ask a quick scripting question....

 

 

I need a lot of stuff to be run by a GameMode script in order to make sure that a number of characters are doing what they are supposed to be doing.

 

Is it more efficient to have one LONG and really complicated GameMode script, or several short, simple scripts?

Link to comment
Share on other sites

Guest Messenjah

Hmmm come to think of it, it may not matter because the way I've written it, each script should only check 6 variables to see if they are true or not (checking the time of day) unless there is something to change. However, I have variables that only allow it to check if those states haven't already been put into place.

 

The other problem of course is then troubleshooting to figure out what npc is screwing up. :P Meh, I'll stick to separate scripts probably.

Link to comment
Share on other sites

efficiency is best defined as stopping unnecessary repetition as much as possible, and utilizing necessary repetition as much as possible.

 

Which ever way gets the job done without working harder. You be the judge :3

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...