Jump to content

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


Recommended Posts

Guest Messenjah
Posted

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?

Posted
One long one is more efficient, but if you're like me and barely know what you're doing, duct taping a bunch of separate blocks together is usually less painful. Unless it ends up hundreds of lines long, it isn't really a problem.
Guest Messenjah
Posted

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.

Posted

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

  • Recently Browsing   0 members

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