I was thinking about doing my scripting for my next game in XML. It is going to be an ORPG. I was just wondering what you guys think of using XML for games.
Works well. I've used in the past.
Probably would work well. Never used in gaming b4
It'd work, but not the greatest scripting option
Use a mixture of a scripting language and XML
Stupid Idea
Maybe use a XML clone, but not the true thing
What's XML?
Good for data, but wouldn't suffice for all scripting
I was thinking about doing my scripting for my next game in XML. It is going to be an ORPG. I was just wondering what you guys think of using XML for games.
xml is great for storing data but im not exactly sure what you mean by "scritpting" your game in XML. its a markup language, not a scripting language.
Here is an example of an explosion
Which does not neccessarily NEED XML, but I want to make it to where people can add in and script stuff with only knowing a few things (such as all events happen with GameEvent, color is Color, etc.)Code:<?xml version="1.0" encoding="iso-8859-1"?> <GameEvent> <Name>Explosion</Name> <Color> <Vertex>0xFF00FF00</Vertex> <Vertex>0xFFFF00FF</Vertex> <Vertex>0xFFFFFFFF</Vertex> <Vertex>0xFFFFFFFF</Vertex> </Color> <Sound>Exp1.wav</Sound> <Animation>\Explosion</Animation> </GameEvent>
What I am thinking about doing though is have a regular scripting engine, then all effects, special events, etc. will be in seperate XML files, and the script will sort of "link" to them.
PS: I voted on "Good for data, but wouldn't suffice for all scripting". Although, I have thought of ways to make it into a pure scripting solution. It will be a pain though.
i use it for "scripting" in my "bot" thingy
http://www.users.cloud9.net/~khalid/nabeel/projects.php
the last one. it makes things much easier