Napoleonic Wargame Club (NWC)

The Rhine Tavern

*   NWC   NWC Staff   NWC Rules   NWC (DoR) Records   About Us   Send Email Inquiry to NWC

*   La Grande Armée Quartier Général    La Grande Armée Officer Records    Join La Grande Armée

*   Allied Coalition   Allied Officers   Join Coalition

*   Coalition Armies:   Austro-Prussian-Swedish Army   Anglo Allied Army (AAA)   Imperial Russian Army

 

Forums:    ACWGC    CCC     Home:    ACWGC    CCC
It is currently Thu May 08, 2025 6:02 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Script for Casualties
PostPosted: Tue Jun 07, 2011 1:06 pm 
Offline

Joined: Wed May 23, 2001 10:18 am
Posts: 6156
Does anyone here know how to build a script that would sum up the OB file strength values by army?

Here is what I am after:

A script that would:

1. Display the info by army, then by infantry, cavalry, guns.

2. It must know to stop when it gets to each army header (French, Austrian, Russian).

3. I can add up the numbers for each Allied army into one sum or the script could do that. Not necessary that the script does this.

Layout of data:

French:<name of army>
Infantry: 51300
Cavalry: 5118
Guns: 78

Austrian:<name of army>
Infantry: 14004
Cavalry: 3401
Guns: 32

Austrian:<name of army>
Infantry: 21000
Cavalry: 5600
Guns: 50

Russian:<name of army>
Infantry: 8231
Cavalry: 2600
Guns: 36

Adding up the values for me would be nice of course but the idea that they are split is not bad as you can quickly look at the nations that way and figure out how much they have.

The script would have to consider the U tag for the unit line. It would also have to know when to start and stop counting for each nation. "French A" "Austrian A" and so on would have to be part of the script start calc/stop calc process. Basically they would be end posts in the formula.

_________________
Image

Generalfeldmarschall Wilhelm Prinz Peters von Dennewitz

3. Husaren-Regiment, Reserve-Kavallerie, Preußischen Armee-Korps

Honarary CO of Garde-Ulanen Regiment, Garde-Grenadier Kavallerie

NWC Founding Member

For Club Games: I prefer the Single Phase mode of play. I prefer to play with the following options OFF:

MDF, VP4LC, NRO, MTD, CMR, PR, MIM, NDM, OMR (ver 4.07)


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 21 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
POWERED_BY
Localized by Maël Soucaze © 2010 phpBB.fr