Skip to main content
GameDev.net gamedev.net
🔒 Locked

Scripting system

Started by BloodLust666 Aug 6, 2005 at 2:56 PM 6 replies 650+ views
Original Post
BloodLust666
BloodLust666
I'm using C++ and i was wondering if there are any tutorials on scripting or if someone can give me a few poingers? I'm planning on using it for my AI, i basically just want to be able to set a specific action and for a specific amount of time and have a pointer to the next action until there are none left.
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
SiCrane
SiCrane
Well there's the entire scripting section of our articles and references.

On the whole, I recommend going with an existing scripting system like Lua or Python.
BloodLust666
BloodLust666
thanks for the references on scripting systems but i'm planning on using all original stuff for my team's work :)
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
DaTroof
DaTroof
Any particular reason you want to write your own scripting system?

My recommendation would be an event scheduler that triggers scripts after a predetermined length of time. I wrote an article about my own event scheduler C++>here.
Post Extant Graphical MUD
BloodLust666
BloodLust666
well, i don't really like to rely on things someone else made unless it was a team member or someone making it with me, i like to be all orginal so incase something gets big people can't say that i used someone else's stuff to get where I am; kinda how to look at everything, wanting to do things all myself. plus i believe in the saying "if you want something done right, just do it yourself". lol sry it turned into a speach :-P.

Alright thanks, i'll check out ur article as well :)
-------------------------Unless specified otherwise, my questions pertain:Windows Platform (with the mindset to keep things multi-platform as possible)C++Visual Studio 2008OpenGL with SFML
Wuntvor
Wuntvor
I will have to agree with what others said, there really isn't a single good reason for you to create your own scripting engine, I'd say. Anything you'll come up with will probably take a lot of time to develop and still fall short of what you could get almost for free just by using an existing library.

If anyone really laughs at you because you used something like Lua, well, in that case you really shouldn't be bothered by them at all. Really, as long as you honor the license of the engine that you are going to use, I don't see how anyone could ever complain about this. I didn't hear anyone complain that commercial games take the easy way out by using libraries..

Otherwise, if you really just want to use a very simple system for queueing up some actions, I guess you really don't need a full-blown scripting system and might opt to implement something yourself for that. Sure, it won't be as sophisticated, but it may work just fine for a small project.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.