The closest thing I've found is the pyweek3 example that Phil posted here earlier, I've been looking over it for a couple of hours now, trying to figure out how the state engine works and how i can use it to load map information. it looks like each map should be implemented like the Rooms in that example, being __import__'ed like that. i'll be honest though, alot of that code is over my head.
On 7/3/07, Giuliano Vilela <[EMAIL PROTECTED]> wrote:
Oh, I forgot to mention... I've looked in the PyGame wiki for an RPG that has already implemented a similar system, but haven't found any. Does anyone have the link for an open source rpg in pygame that uses a feature like that? On 7/3/07, Giuliano Vilela <[EMAIL PROTECTED]> wrote: > > "There are a lot of different ways you could implement this, but the > idea > is the same. you want an organized collection of information about what > you have and have not done yet. Then if quest["Killed the Dragon"]==True > the dragon doesn't appear on the map any more. Stuff like that." > > I want something among those lines!! But not just a collection of > information, I guess it would be more like a way to make my own classes > behave differently according to the information in the script, just as some > of you guys described in the messages. I guess i'll be implementing small > "actions" one by one, untill I have a base of actions that can describe the > game situation. > > "I'm working on a similar project, but I'm sort of modelling it after > the Dragon Warrior series. I'm at about the same point as you are. I've > got NPCs that walk around on a big tile-base map, you can talk to them and > read signs, I've got a basic map editor too. my problem as of late has been > coming up with a way to script the NPCs and Quests. My map file format is > pretty terrible, but it works. maybe there are some areas we can > collaborate on, lots of good suggestions here already that i plan to look > into. " > > We're definetly working on something very similar, I'll try to implement > something and send some e-mails to you then =). > ps: my map format is really butt ugly too xD >