[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] RPG Quest System



Hey,

Do this instead:
$ python main.py

-Phil

Michael Sullivan <michael@xxxxxxxxxxxxxxxx> wrote:
On Tue, 2007-07-03 at 07:56 -0700, Phil Hassey wrote:
> Hey,
>
> Use python for your scripting language. It's the best!
>
> (I'm not being silly either - I use python for scripting python in
> several games. I've made an adventure game -
> svn://www.imitationpickles.org/pyweek3/trunk - which imports the
> various rooms as needed. If you don't want to import rooms, you can
> always load them up dynamically.)
>
> - Phil
>
> Giuliano Vilela wrote:
> Hi guys,
>
> I've done some simple small games with PyGame, and decided to
> move on to a little fun RPG zelda-like game. I managed to make
> a little tile scrolling engine, dialog and ugly interfaces,
> spells, itens (still under work), etc.. etc... What I really
> am worried about is the, not sure what to call, "quest
> system".
>
> I can't think of a simple way of making a scenario, some
> things that the "hero" have to do before advancing... Becouse,
> you know, this is pretty huge. The quest that the hero is
> doing at the moment decides the dialogs of the npc's, closed
> gates, etc etc... I'm thinking about making like a "scripting"
> language to describe all those things, but I can't think of
> any way to include this in the game... It's just something
> so... general.
>
> Anyway, some of you must already have done something similar,
> so I wanna hear your toughts about this =) Ways of designing
> the codes, some ideas about the quest system, is the
> "scripting language" the right way of doing it, etc...
>
> Hope i've been clear... Feel free to ask anything. The game
> will be available at the PyGame wiki as soons as it is
> "playable".
>
> Thank you already,
>
>
> Giuliano Vilela.

I downloaded the files from the above address, but something seems a
little kooky to me. When I ran setup.py, I got this:

michael@camille trunk $ ./setup.py
./setup.py: line 1: from: command not found
./setup.py: line 2: try:: command not found
./setup.py: line 4: except:: command not found
./setup.py: line 5: pass: command not found
./setup.py: line 13: data: command not found
./setup.py: line 14: *.txt,: command not found
./setup.py: line 15: data/*,: No such file or directory
./setup.py: line 16: ]: command not found
./setup.py: line 18: syntax error near unexpected token `('
./setup.py: line 18: `for d in glob.glob('data/*'):'

Why would it trip over the 'from' keyword? I opened setup.py up in vim
and from is syntactically coloured, so it should be a valid keyword.
I'm running Gentoo Linux. I'm going to try remerging python....



Looking for a deal? Find great prices on flights and hotels with Yahoo! FareChase.