Jump to content

What is the best way?


Codex

Recommended Posts

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 tongue.png

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 by chad0ck
Link to comment
Share on other sites

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 tongue.png

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
  • Like 1
Link to comment
Share on other sites

 

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. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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