Nosta 0 Share Posted October 14, 2020 Hello guys! I'm 1 month into scripting and I've just completed my Tutorial Island script! I'm planning on having one "do it all" script that I will run on 100+ accounts: Complete Tutorial Island --> Get the requirements to use GE --> Start making GP using various methods and transfering the profits to a mule. My question is in reguards to script structure. My Tutorial Island script is just about 1200 lines of code and uses a Enum structure with different States being executed within a loop. But as my character is now done with Tutorial Island and is about to do his first quest, how should I structure this quest to be a part of the same one script? Should I make a new Project for each quest and have my "main" script talk to those projects? If so, how do I do that? If not, then should I make a new class and make my "main" class speak with the other classes to complete different quests/tasks? How should I go about doing that? What are your suggestions? I bet it would be unwise to list more "states" for things outside of Tutorial Island right? Then I would end up with A LOT of different states and it would start to become unreadable at one point. Wouldn't it be wiser with a structure such as having a main class that communicates with other classes containing quests/tasks? How do I go about doing that? Anyone with experience? Perhaps links to some resourses? Thank you so much for reading, hope you have a fantastic day ~Nosta Link to comment Share on other sites More sharing options...
bloodwi11 2 Share Posted October 19, 2020 I'd suggest looking at either a task/node framework to get started or a tree/branch/leaf version, node scripts tend to be easier to maintain and understand when working on some of your first complex scripts where tree/leaf framework will provide more efficient and precise actions desired with increased complexity. Both can provide what your looking for but it really boils down to what you prefer. Some searching around the forms can yield some source from other users. I believe Articron posted one a while back Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.