Guest Messenjah Posted December 1, 2012 Share Posted December 1, 2012 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 More sharing options...
Mishaxhi Posted December 1, 2012 Share Posted December 1, 2012 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. Link to comment Share on other sites More sharing options...
Guest Messenjah Posted December 1, 2012 Share Posted December 1, 2012 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 More sharing options...
Korodic Posted December 1, 2012 Share Posted December 1, 2012 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 More sharing options...
Recommended Posts