R
Randel.Clawson at CTBTO.o
Guest
OK gang, I'm working on some data files for BFG (yes, I know about the files already available but I have reasons for creating my own) and I've come across a snag in my glorious plan for modelling escort ship squadrons.
Here's a visual example of what I've got so far:
++Example 1++
## Hts Spd Trn Shd Arm Trt Ldr
Escort Squadron 1 - - - - - -
+Iconoclasts+ 2 1 30cm 90° 1 4+ 1 -
+Infidels+ 2 1 30cm 90° 1 5+ 1 -
+Idolators+ 2 1 30cm 90° 1 5+ 2 -
Weapons battery 30cm - 3 - Left/Front/Right
Weapons battery 30cm - 2 - Left/Front/Right
Torpedos 30cm - 2 - Front
Lance battery 30cm - 1 - Front
Weapons battery 45cm - 2 - Left/Front/Right
Now a bit of explanation:
The 'Escort Squadron' is the unit that actually appears in the list of 'Available Units'. I've modelled the above because it's the most elegant solution when you 1) want to assign a name to the squadron and 2) you want to allow the Escort Squadron to serve as a 'header' for all escorts purchased for the squadron. Please note that the Ldr stat is intentionally blank (that stat is rolled just before the game).
The Iconoclasts, Infidels and Idolators are specific types of escort that are added to the squadron as children via 3 separate options and the 'unit' attribute for each option. An Escort Squadron must consist of a minimum of 2 and a maximum of 6 escorts in any combination of the these 3 types (2 Iconoclasts ~or~ 3 Iconoclasts and 3 Infidels, etc.).
The various weapons are added through 'Incl' options, with the options themselves having 'apnd' and 'invs:nodisplay' (I have a reason for this last one) as attributes.
Now I'll get to the problems I'm having. To help, here's a visual example of what I'm actually aiming for:
++Example 2++
## Hts Spd Trn Shd Arm Trt Ldr
Escort Squadron 1 - - - - - -
+Iconoclasts+ 2 1 30cm 90° 1 4+ 1 -
Weapons battery 30cm - 3 - Left/Front/Right
+Infidels+ 2 1 30cm 90° 1 5+ 1 -
Weapons battery 30cm - 2 - Left/Front/Right
Torpedos 30cm - 2 - Front
+Infidels+ 2 1 30cm 90° 1 5+ 1 -
Lance battery 30cm - 1 - Front
Weapons battery 45cm - 2 - Left/Front/Right
Problem #1. How to get the weapons for each type of escort to appear under the escort entry that has been added as a child unit? Please note that in Example 1 the weapons appear in the correct order for each escort (they're all sorted by option category, so that lances come before weapons and longer ranges appear before shorter, etc.), they've all just been lumped together at the end.
Problem #2. Ship limits. I want to allow any combination of the 3 ships that doesn't exceed 6 ships in total but I can't seem to find the right combination of attributes to use for this when the ships are added as options.
Any assistance would be greatly appreciated!
Cheers,
Randel
------------------
Randel's BFG Stuff
http://www.madtexan.com/BFG/index.html
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/IMSolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, email
armybuilder-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
Here's a visual example of what I've got so far:
++Example 1++
## Hts Spd Trn Shd Arm Trt Ldr
Escort Squadron 1 - - - - - -
+Iconoclasts+ 2 1 30cm 90° 1 4+ 1 -
+Infidels+ 2 1 30cm 90° 1 5+ 1 -
+Idolators+ 2 1 30cm 90° 1 5+ 2 -
Weapons battery 30cm - 3 - Left/Front/Right
Weapons battery 30cm - 2 - Left/Front/Right
Torpedos 30cm - 2 - Front
Lance battery 30cm - 1 - Front
Weapons battery 45cm - 2 - Left/Front/Right
Now a bit of explanation:
The 'Escort Squadron' is the unit that actually appears in the list of 'Available Units'. I've modelled the above because it's the most elegant solution when you 1) want to assign a name to the squadron and 2) you want to allow the Escort Squadron to serve as a 'header' for all escorts purchased for the squadron. Please note that the Ldr stat is intentionally blank (that stat is rolled just before the game).
The Iconoclasts, Infidels and Idolators are specific types of escort that are added to the squadron as children via 3 separate options and the 'unit' attribute for each option. An Escort Squadron must consist of a minimum of 2 and a maximum of 6 escorts in any combination of the these 3 types (2 Iconoclasts ~or~ 3 Iconoclasts and 3 Infidels, etc.).
The various weapons are added through 'Incl' options, with the options themselves having 'apnd' and 'invs:nodisplay' (I have a reason for this last one) as attributes.
Now I'll get to the problems I'm having. To help, here's a visual example of what I'm actually aiming for:
++Example 2++
## Hts Spd Trn Shd Arm Trt Ldr
Escort Squadron 1 - - - - - -
+Iconoclasts+ 2 1 30cm 90° 1 4+ 1 -
Weapons battery 30cm - 3 - Left/Front/Right
+Infidels+ 2 1 30cm 90° 1 5+ 1 -
Weapons battery 30cm - 2 - Left/Front/Right
Torpedos 30cm - 2 - Front
+Infidels+ 2 1 30cm 90° 1 5+ 1 -
Lance battery 30cm - 1 - Front
Weapons battery 45cm - 2 - Left/Front/Right
Problem #1. How to get the weapons for each type of escort to appear under the escort entry that has been added as a child unit? Please note that in Example 1 the weapons appear in the correct order for each escort (they're all sorted by option category, so that lances come before weapons and longer ranges appear before shorter, etc.), they've all just been lumped together at the end.
Problem #2. Ship limits. I want to allow any combination of the 3 ships that doesn't exceed 6 ships in total but I can't seem to find the right combination of attributes to use for this when the ships are added as options.
Any assistance would be greatly appreciated!
Cheers,
Randel
------------------
Randel's BFG Stuff
http://www.madtexan.com/BFG/index.html
------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/l.m7sD/LIdGAA/qnsNAA/IMSolB/TM
---------------------------------------------------------------------~->
To unsubscribe from this group, email
armybuilder-unsubscribe@yahoogroups.com
Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/