Re: [Pybem-developers] Re: base36!
Brought to you by:
abriggs
From: Adrian S. <fo...@ii...> - 2002-06-25 15:00:19
|
On Tue, 25 Jun 2002, Anthony Briggs wrote: > At 10:23 PM +0800 25/6/02, Adrian Smith wrote: > >OK, deal, you do the items/skills and I'll do a parser. > >We should be able to read in the items/skills from an XML file. > > I would prefer something a little more human-readable/writable, but > it's up to you - maybe we could have some sort of switch to read in > XML/text. > There are lots of tools available to read/write/edit/analyse XML, so it just makes sense. No reason we can't have converters, to/from plain text or whatever, or a custom GUI to create the XML config file. > I just think that the syntax (at least for specifying items) would be > better as something like: > > skill knight > synonyms knig > effect +lvl combat > +lvl upkeep > requires skills sword riding shield heraldry > items sword horse plate_armour shield > > I think it's less readable as something like: > > <skillspec> > <synonyms>knig</synonyms> > <effect><bonus addto="combat">+lvl</bonus> > <require type="skill">combat</require> > <require type="skill">sword</require> > <require type="skill">riding</require> > <require type="skill">shield</require> > <require type="skill">heraldry</require> > <require type="item">sword</require> > <require type="item">horse</require> > <require type="item">plate armour</require> > <require type="item">shield</require> > </effect> > </skillspec> > > I've expounded on this at length, so I'll shut up now, but just so > you know what I think ;) Feel free to poke your nose into items if > you like... > > Ant > -- > ---------------------------------------------------- > HyPEraCtiVE? HeY, WhO aRE YoU cALliNg HypERaCtIve?! > aB...@Ii... > ---------------------------------------------------- > > > ------------------------------------------------------- > Sponsored by: > ThinkGeek at http://www.ThinkGeek.com/ > _______________________________________________ > Pybem-developers mailing list > Pyb...@li... > https://lists.sourceforge.net/lists/listinfo/pybem-developers > |