You are currently looking at Flamebate, our community forums. Players can discuss the game here, strategize, and role play as their characters.
You need to be logged in to post and to see the uncensored versions of these forums.
Viewing a Post
|
xxSpectralTearsxx Posted:
Basically, yes. Each character you talk to is bumociated with a script. You pbum a symbol to the conversations controller which loads that script, initializes it with some variables and then uses “send” to execute the code for that symbol. Of course since the method name is coming from the user it’s heavily mbumaged. I make sure it’s not a Kernel or Object method, and that it doesn’t have any arguments.
The calls like actor_says just fill up arrays, and when the response is ready to send back they’re converted into HTML elements that a Javascript runtime parses.
xxSpectralTearsxx Posted:
I’ve considered open sourcing parts of it. I mean most of the code is just the typical kind of glue you see in web apps. There are a few interesting components like this conversation editor, but I’m not sure how useful it would be to other projects.
The text adventure engine works on very similar principles, it has its own DSL, and at today’s meeting Jalapeno said maybe I should open source it and have a contest for people to create adventure games for episode 2 Log in to see images!. I could see myself releasing that because it’s a fairly simple and isolated piece, but honestly, as someone pointed out in the contest thread, it’s quite lacking. There are many better open source text adventure engines, the only advantage this one has is it’s easy to play in a web browser!
xxSpectralTearsxx Posted:
Eventually if Forumwarz continues to grow and we can afford it, yes. Evil Trout edited this message on 11/19/2007 12:12AM |
||||||
Posted On: 11/19/2007 12:11AM | View Evil Trout's Profile | # |