S
sday at dolphin-cs.co.uk
Guest
Hi,
I am building a set of files for a Napoleonic type game and I'm having a bit of trouble with setting up the artillery units.
Basically:
Each Artillery battery can have between 1 and 3 guns at a fixed cost per gun - not a problem
Each gun can have between 2 and 6 crew - again not a problem
For each gun in the battery (above 1 gun), a fixed cost is incurred - Hmmmmm problem...
So 1 gun = no extra cost, 2 guns = +30 points, 3 guns = +60 points
The way it is currently set up is that the Artillery Battery is a "unit" (number 1:3)
The Gun type is an "option" with a fixed cost.
The Crew are a "unit" (number 2:6) with a fixed cost per person and are linked to the Artillery Battery via an automatic "option" (attribute = unit:crew@var)
The battery cost is also a "unit" (number 0:2) linked to the Artillery Battery via an automatic "option" (attribute = unit:batt@var)
I have managed to get the "battery cost" count to initialize as zero and increase correctly using the internal attributes "ratp:max=2:1", "ratp:max=3:2" and "zero" on the "battery cost" unit.
However, if the number of guns is decreased, the battery cost unit doesn't downsize correctly and won't allow me to set it to zero again.
This is one of the first data files I have put together, so I'm still on a bit of a learning curve ;-)
Any idea how to get round this ?
Cheers,
Simon Day
________________________________________________________________________
This message has been checked for all known viruses, by Star Internet,
delivered through the MessageLabs Virus Control Centre.
For further information visit:
http://www.star.net.uk/stats.asp
--------------------------------------------------------------------<e|-
Go to Maingate.com to improve the quality of military life.
http://click.egroups.com/1/7637/4/_/36190/_/966250381/
--------------------------------------------------------------------|e>-
To unsubscribe from this group, email
armybuilder-unsubscribe@egroups.com
I am building a set of files for a Napoleonic type game and I'm having a bit of trouble with setting up the artillery units.
Basically:
Each Artillery battery can have between 1 and 3 guns at a fixed cost per gun - not a problem
Each gun can have between 2 and 6 crew - again not a problem
For each gun in the battery (above 1 gun), a fixed cost is incurred - Hmmmmm problem...
So 1 gun = no extra cost, 2 guns = +30 points, 3 guns = +60 points
The way it is currently set up is that the Artillery Battery is a "unit" (number 1:3)
The Gun type is an "option" with a fixed cost.
The Crew are a "unit" (number 2:6) with a fixed cost per person and are linked to the Artillery Battery via an automatic "option" (attribute = unit:crew@var)
The battery cost is also a "unit" (number 0:2) linked to the Artillery Battery via an automatic "option" (attribute = unit:batt@var)
I have managed to get the "battery cost" count to initialize as zero and increase correctly using the internal attributes "ratp:max=2:1", "ratp:max=3:2" and "zero" on the "battery cost" unit.
However, if the number of guns is decreased, the battery cost unit doesn't downsize correctly and won't allow me to set it to zero again.
This is one of the first data files I have put together, so I'm still on a bit of a learning curve ;-)
Any idea how to get round this ?
Cheers,
Simon Day
________________________________________________________________________
This message has been checked for all known viruses, by Star Internet,
delivered through the MessageLabs Virus Control Centre.
For further information visit:
http://www.star.net.uk/stats.asp
--------------------------------------------------------------------<e|-
Go to Maingate.com to improve the quality of military life.
http://click.egroups.com/1/7637/4/_/36190/_/966250381/
--------------------------------------------------------------------|e>-
To unsubscribe from this group, email
armybuilder-unsubscribe@egroups.com