Codex Posted July 30, 2015 Share Posted July 30, 2015 What is the best way to plan out a new script? I mean the steps of how it will work such as location checking, required tool checking, walking and then the actual interaction with what ever the script is meant to do? Quote Link to comment Share on other sites More sharing options...
Botre Posted July 30, 2015 Share Posted July 30, 2015 UML or just write a basic skeleton by working out the logic in your head an then write out the implementation of it as you go 1 Quote Link to comment Share on other sites More sharing options...
Flamezzz Posted July 30, 2015 Share Posted July 30, 2015 ^ that but don't use UML. Identify the states, transitions and just write abstract, high level pseudocode first. 2 Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted July 30, 2015 Share Posted July 30, 2015 Write a flowchart to understand the flow of the script, and then build the basic script and finetune as you go. 1 Quote Link to comment Share on other sites More sharing options...
Codex Posted July 30, 2015 Author Share Posted July 30, 2015 Cheers! Quote Link to comment Share on other sites More sharing options...
chad0ck Posted July 31, 2015 Share Posted July 31, 2015 (edited) Write a flowchart to understand the flow of the script, and then build the basic script and finetune as you go. This ^ They say you should spend 50% of development time planning your program out, think of this as the building blocks of your script. You don't want to build a house with a shitty foundation The best way of planning it out, do what you are gonna do manually, and write down everything you do. If you went down a set of stairs, you'll need that. if you walked somewhere, you'll need that. write everything down! Edited July 31, 2015 by chad0ck Quote Link to comment Share on other sites More sharing options...
Bobrocket Posted July 31, 2015 Share Posted July 31, 2015 This ^ They say you should spend 50% of development time planning your program out, think of this as the building blocks of your script. You don't want to build a house with a shitty foundation The best way of planning it out, do what you are gonna do manually, and write down everything you do. If you went down a set of stairs, you'll need that. if you walked somewhere, you'll need that. write everything down! I don't think spending half of your dev time planning is a bad idea. Here's my (personal) process: Think of script idea and all the complex details and write them down Boil it down to the super basics and flowchart it (eg a NPC killer would be things like "walk to nearest bank -> prepare inventory -> (loop) has item? (y/n) -> walk to mob -> kill mobs until out of food/no more items -> repeat") Write the basics Start adding complex details (try and keep an OOP structure to ensure it's easy to add more stuff to) Refine your script and finetune it until it is ready for release An example for your complex details, an NPC killer may have these points: If in wilderness, search for a looting bag in your bank to use Must be able to start anywhere and work anywhere Support changing combat styles on demand Dynamic safespots for range/mage The script must check if the mob is at full hp for loot 1 Quote Link to comment Share on other sites More sharing options...
chad0ck Posted July 31, 2015 Share Posted July 31, 2015 I don't think spending half of your dev time planning is a bad idea. Here's my (personal) process: Think of script idea and all the complex details and write them down Boil it down to the super basics and flowchart it (eg a NPC killer would be things like "walk to nearest bank -> prepare inventory -> (loop) has item? (y/n) -> walk to mob -> kill mobs until out of food/no more items -> repeat") Write the basics Start adding complex details (try and keep an OOP structure to ensure it's easy to add more stuff to) Refine your script and finetune it until it is ready for release An example for your complex details, an NPC killer may have these points: If in wilderness, search for a looting bag in your bank to use Must be able to start anywhere and work anywhere Support changing combat styles on demand Dynamic safespots for range/mage The script must check if the mob is at full hp for loot Follow this, and you'll have a good time. Quote Link to comment Share on other sites More sharing options...