Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Dark GDK / Scripting for RPG

Author
Message
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 29th Jul 2008 06:12
How exactly would I implement a scripting system for a 2D RPG? Any tutorial links?

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 29th Jul 2008 06:26
I think I found some:

http://www.devmaster.net/articles/lua/lua1.php

http://www.gamedev.net/reference/articles/article1633.asp

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo
pirogoth
16
Years of Service
User Offline
Joined: 6th Apr 2008
Location: Good Old California
Posted: 29th Jul 2008 07:31
There are a lot of resources on Lua, a google search will do you well. One of the recommended links is fairly hidden on the lua website as they wish you to buy the book, but an early draft of the "Programming In Lua" is available for free on the main website.

http://www.lua.org/pil/

However, as a personal preference, I'd highly recommend against Lua. While it's fairly often used, most people tend to use it in situations that don't call for it. If you are programming in an object oriented fashion for example, Lua is likely not the best choice. You can force OOP techniques, but they tend to be very clumsy and prone to breaking from release to release.

I would very much you take a look into the Squirrel Language (no joke). It's heavily based on lua (it's actually a fork of the lua project) but has many of the more "recreated" structures and techniques in the language itself, rather than tacked on via meta-table trickery. It has been used in a few commercial titles and a great many indy projects. It's as easy to embed in a C++ application as lua.

Just my two cents on the subject.

Come to think of it, I should write a .NET wrapper around the library...

-Piro
Mahoney
16
Years of Service
User Offline
Joined: 14th Apr 2008
Location: The Interwebs
Posted: 29th Jul 2008 07:59
I've actually heard of the Squirrel Language (and yes, I laughed ). I'll look into it. But, to be honest, I just looked over info on scripting, and I'm thinking I should just hard code it all this time. Maybe, for my next game, use scripting.

Windows Vista Home Premium Intel Pentium Dual-Core 1.6 Ghz 1GB DDR2 RAM GeForce 8600GT Twin Turbo

Login to post a reply

Server time is: 2024-11-20 17:22:59
Your offset time is: 2024-11-20 17:22:59