Jump to content
  • Advertisement
Sign in to follow this  
pnroach

alternative to scripting

This topic is 4949 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

a lot of people talk about scripting being the best way to produce ai for games. i was wondering if a more differentiated approach could be used: use scripts for dialogs and the whole game flow and use DLLs(or LIBs) for path-finding and all that heavy algorithmic things? ideas? suggestions? pros and cons?

Share this post


Link to post
Share on other sites
Advertisement
This type of decisions have always depended in your needs. All of these approaches have been made in commercial games.

If the AI you are going to program is very very demanding you should not use scripting due to the CPU. But if its very simple and you want it to be flexible, then just use scripting. This is a very relative thing.

Share this post


Link to post
Share on other sites
Not really related - but a lot of games use a declarative event triggering system as an alternative to scripts. It might make your level designers more productive (depending on their skill level). It's certainly easier for non-programmers.

On the downside, declarative event triggers are not as flexible as scripts. But you can always combine them with scripts - some games do that too.

Mark

Share this post


Link to post
Share on other sites
I'd say that if you can ever go with a data-driven system, such as simple triggers/responses, rather than scripts, then do it. They're easier to debug and easier to develop user-friendly tools for. Dialogues are usually ripe for a data-driven design since they tend to just be text displays and maybe choices of triggers. Scripting should probably be saved for when you really need the extra power, and not viewed as a solution to everything. But there are few games where scripting won't be useful for something.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!