Page 1 of 1

XML question

PostPosted: Tue Mar 13, 2007 10:00 pm
by WidowMakers
I only know XML enough to code the little we use for the maps. I was wondering if XML can have if...then statements in it. I have a few interesting ideas for gameplay and layouts if that is possible.

PostPosted: Tue Mar 13, 2007 10:44 pm
by yeti_c
XML is merely a data markup language...

There is no control other than what the reader places over it.

Soz... If Lack coded some stuff up then you could... can't see it happening for a while.

C.

PostPosted: Wed Mar 14, 2007 5:18 am
by WidowMakers
Thanks

PostPosted: Wed Mar 14, 2007 5:19 am
by yeti_c
No worries pal.

C.

PostPosted: Fri Mar 16, 2007 1:14 pm
by joystickgenie
I have a different xml question.

I have been thinking about different styles of game play that could be put together and one thing I would like to have is a little extra control over deployment. Is there a way to say that you can’t deploy armies on certain territories during the deployment step? This would be used for making some territories that can only be held by armies that have been moved to that territory from another one during the attack or during the fortification step (preferably I would like separate control of each) This could also be used for making DMZs where no units can be fortified into the zone or deployed to the zone but you can attack though the zone.

Maybe a way to use different xml files depending on the current step of the turn? In looking over the XML files of the maps that are currently up it doesn’t seem like there is functionality for something like this but I thought I would ask just to make sure.

PostPosted: Fri Mar 16, 2007 1:19 pm
by DiM
at the moment it's not possible. i suggested something like this and no :(

PostPosted: Fri Mar 16, 2007 1:34 pm
by joystickgenie
aww well thats sad. I had so many fun ideas that I could implement if I had some sort of options like that.

PostPosted: Fri Mar 16, 2007 2:21 pm
by yeti_c
Expansion of the map xml would have to be done by Lack...

There are plenty of things out there that would be cool to have to be manipulated in the XML - at present we simply have countries - continents and their Co-ordinates...

Specifying neutral countries would be ace - as would amount of armies placed on them if neutral.

Manipulation based on continents and borders is possilbe now (hence one way attacks - & continents with same countries in etc)

C.