View previous topic - View next topic |
Would you like to see an article on Lua? |
Yes |
|
69% |
[ 9 ] |
No |
|
7% |
[ 1 ] |
Maybe so? |
|
23% |
[ 3 ] |
|
Total Votes : 13 |
|
Author |
Message |
coldacid Moira's Silly Little Slave Bitch
Joined: 08 Jun 2002 Posts: 80 Location: Pickering, Ontario, Canada
|
Posted: Fri Jun 14, 2002 8:41 am Post subject: Article Idea: Using Lua In An RPG Project |
[quote] |
|
Since I'm learning to embed Lua into my project Colony, I've been thinking about writing an article on how to embed and use Lua. This'll only be useful to the C/C++ people, but oh well...
Anyways, I'm looking for interest in the idea. After a while, I'll just check here, and depending on the level of interest, I'll write an article on Lua. _________________ Chris 'coldacid' Charabaruk
|
|
Back to top |
|
|
vincent Guest
|
Posted: Fri Jun 14, 2002 11:11 am Post subject: |
[quote] |
|
Here how I do it in Valkin II (on this site, still have to get around to
putting a second demo together :))
Each of my scriptable objects have a Lua table associated. These
can define triggers to override the default behavior. For instance,
if you have a sword, it has a trigger named "ontaken". The default
behavior is to accept being taken. However, if you override this
"ontaken" trigger, you could do whatever you want, including, hmm,
denying to be taken, as well as give some damage to the taker, and
play a sound sample "don't you dare touch me with your filthy hands!".
That's the main idea. I have plenty of these triggers. All the objects
(eg all types: characters, items, the map itself) have common triggers
like "ontick", "onsave", "onload", etc.
The table can use variables for its own FSMs and stuff, and my engine
supplies functions to the scripts so they can load and save these (they
are stored as table fields, obviously).
|
|
Back to top |
|
|
coldacid Moira's Silly Little Slave Bitch
Joined: 08 Jun 2002 Posts: 80 Location: Pickering, Ontario, Canada
|
Posted: Fri Jun 14, 2002 11:23 am Post subject: |
[quote] |
|
Heheh, that's too specific. I want to write on how to embed Lua (through the PhiLhoSoft Lua distribution, see the lua-users.org wiki addons page), and perhaps a little bit on actually writing scripts. _________________ Chris 'coldacid' Charabaruk
|
|
Back to top |
|
|
DarkDread Wraith Lord
Joined: 28 May 2002 Posts: 422 Location: behind your bushes
|
Posted: Fri Jun 14, 2002 12:22 pm Post subject: |
[quote] |
|
Yeah, write one... I'm sure it'd be helpful to some newbies planning on using Lua... like me. :D _________________ "Goth is a way for ugly people to be interesting."
|
|
Back to top |
|
|
Rainer Deyke Demon Hunter
Joined: 05 Jun 2002 Posts: 672
|
Posted: Fri Jun 14, 2002 2:51 pm Post subject: |
[quote] |
|
While I don't really like Lua and tend to write custom scripting engines for my games, I would still find an article on Lua useful.
|
|
Back to top |
|
|
coldacid Moira's Silly Little Slave Bitch
Joined: 08 Jun 2002 Posts: 80 Location: Pickering, Ontario, Canada
|
Posted: Fri Jun 14, 2002 4:29 pm Post subject: |
[quote] |
|
Looks like I'll be writing that article... I'm going to list it now, however, there's no content to it at this time. It's a work in progress, but when I get to a final release I'll make sure to inform you all. _________________ Chris 'coldacid' Charabaruk
|
|
Back to top |
|
|
DarkDread Wraith Lord
Joined: 28 May 2002 Posts: 422 Location: behind your bushes
|
Posted: Fri Jun 14, 2002 7:27 pm Post subject: |
[quote] |
|
why not wait until there's at least some meat, before listing it? _________________ "Goth is a way for ugly people to be interesting."
|
|
Back to top |
|
|
XMark Guitar playin' black mage
Joined: 30 May 2002 Posts: 870 Location: New Westminster, BC, Canada
|
Posted: Sat Jun 15, 2002 3:07 am Post subject: |
[quote] |
|
Yeah, there's only the bun, with perhaps some of the condiments and maybe a sprinkling of onions....
goddammit, I've been working at McDonalds too long :) _________________ Mark Hall
Abstract Productions
I PLAYS THE MUSIC THAT MAKES THE PEOPLES FALL DOWN!
|
|
Back to top |
|
|
coldacid Moira's Silly Little Slave Bitch
Joined: 08 Jun 2002 Posts: 80 Location: Pickering, Ontario, Canada
|
Posted: Sat Jun 15, 2002 9:34 am Post subject: |
[quote] |
|
It's so you guys pressure me into finishing it, if for no other reason.
BTW XMark, you made me hungry. _________________ Chris 'coldacid' Charabaruk
|
|
Back to top |
|
|
DarkDread Wraith Lord
Joined: 28 May 2002 Posts: 422 Location: behind your bushes
|
Posted: Sat Jun 15, 2002 10:57 am Post subject: |
[quote] |
|
heh, problem with releasing something without enough meat, is that most people won't really care... so, it'll have the opposite effect. Nobody will pester you about it, and you'll just drop it. Finish the article, post it, then wait for comments and suggestions, and then improve on it.
It's the equivalent of saying "greatest RPG ever!", and releasing a tile scroller demo. _________________ "Goth is a way for ugly people to be interesting."
|
|
Back to top |
|
|
golrien Milk Maid
Joined: 09 Jun 2002 Posts: 40 Location: Shropshire, England
|
Posted: Sat Jun 15, 2002 2:42 pm Post subject: response |
[quote] |
|
And as we know, when *you* released a tile scroller demo it was everyone else who hailed it as the "greatest RPG ever!" :)
|
|
Back to top |
|
|
XMark Guitar playin' black mage
Joined: 30 May 2002 Posts: 870 Location: New Westminster, BC, Canada
|
Posted: Sun Jun 16, 2002 5:27 am Post subject: |
[quote] |
|
I remember back then, I downloaded The Dark Crown and I was like "hey, cool! You can actually do this stuff in QB!". I also thought Darkdread was a girl :) I mean, with the fluffy bunnies and using cat food as money and stuff, heh...
It put the idea in my head that I'd try making my own RPG but it was only when I found Mike Hoopman's Dark Ages that I was like "Hey, cool! You can actually finish a full-length RPG like this in QB!" and I really got inspired. _________________ Mark Hall
Abstract Productions
I PLAYS THE MUSIC THAT MAKES THE PEOPLES FALL DOWN!
|
|
Back to top |
|
|
DarkDread Wraith Lord
Joined: 28 May 2002 Posts: 422 Location: behind your bushes
|
Posted: Sun Jun 16, 2002 1:55 pm Post subject: Re: response |
[quote] |
|
golrien wrote: | And as we know, when *you* released a tile scroller demo it was everyone else who hailed it as the "greatest RPG ever!" :) |
Uhm... I've never released a tile scroller demo. I've only ever put out complete games, and fully playable demos. You must have me confused with someone else. _________________ "Goth is a way for ugly people to be interesting."
|
|
Back to top |
|
|
DarkDread Wraith Lord
Joined: 28 May 2002 Posts: 422 Location: behind your bushes
|
Posted: Sun Jun 16, 2002 1:56 pm Post subject: |
[quote] |
|
XMark wrote: | I remember back then, I downloaded The Dark Crown and I was like "hey, cool! You can actually do this stuff in QB!". I also thought Darkdread was a girl :) I mean, with the fluffy bunnies and using cat food as money and stuff, heh... |
heh... yeah, Dark Crown was a rather feminine game, wasn't it? :D _________________ "Goth is a way for ugly people to be interesting."
|
|
Back to top |
|
|