Guest
Posts: n/a
|
Ok for Ultimate warzone I need some help with two parts of the army
validation. First off some basic system info, and the validation rules. You have 4 types of units: Grunts, Elites, Personalities, and Support. The base line rules are # of Grunt squads >= # of elite squads, # of Grunt + Elite squads >= # of Personalities, and #/2 of grunts + elites >= # of support. I have these coded. >From there come my two problems. Problem one, each elite squad is supposed to be the same size or smaller the a grunt squad, and each grunt squad can only count this way for a single elite squad. Second, taking allies counts againist your # of support units, but you also need to obey the unit type limits looking at just the allied units. So if you want to take an allied elite unit, you need to have at least 1 allied grunt unit, as well as having 2 units (grunt (s)/elites) of your basic army. Any ideas? ------------------------ Yahoo! Groups Sponsor --------------------~--> Make a clean sweep of pop-up ads. Yahoo! Companion Toolbar. Now with Pop-Up Blocker. Get it for free! http://us.click.yahoo.com/L5YrjA/eSI...LSAA/IMSolB/TM --------------------------------------------------------------------~-> |
#1 |
Senior Member
Lone Wolf Staff
Join Date: May 2005
Posts: 8,232
|
Within AB, there is no way to automatically and intelligently match up
grunt squads with elite squads to verify the size relationships. However, you *COULD* use the leader/follower mechanism to accomplish the goal. If you assign all elite squads as leaders and grunt squads as followers (or vice versa), you could then let the user match up the squads as he saw fit and then AB could verify the size relationships. This isn't necessarily an ideal solution, but it would definitely work. You could model allies the same way as above and require that the leader/follower connection pair up units of the same race. Then you could have a simple validation rule that ensured you had more core units than allies. Hope this helps, Rob At 04:25 AM 8/13/2004 +0000, you wrote: >Ok for Ultimate warzone I need some help with two parts of the army >validation. > >First off some basic system info, and the validation rules. >You have 4 types of units: Grunts, Elites, Personalities, and Support. >The base line rules are # of Grunt squads >= # of elite squads, # of >Grunt + Elite squads >= # of Personalities, and #/2 of grunts + >elites >= # of support. I have these coded. > > >From there come my two problems. Problem one, each elite squad is >supposed to be the same size or smaller the a grunt squad, and each >grunt squad can only count this way for a single elite squad. > >Second, taking allies counts againist your # of support units, but >you also need to obey the unit type limits looking at just the allied >units. So if you want to take an allied elite unit, you need to have >at least 1 allied grunt unit, as well as having 2 units (grunt >(s)/elites) of your basic army. > >Any ideas? --------------------------------------------------------------------------- Rob Bowes (rob@wolflair.com) (650) 588-8252 Lone Wolf Development www.wolflair.com ------------------------ Yahoo! Groups Sponsor --------------------~--> $9.95 domain names from Yahoo!. Register anything. http://us.click.yahoo.com/J8kdrA/y20...LSAA/IMSolB/TM --------------------------------------------------------------------~-> |
#2 |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Seeking Feedback... | devihughes at earthlink.n | Card Vault | 3 | June 21st, 2003 12:36 AM |
Seeking: Gropos File Creator | dmiller23 at neo.rr.com | Army Builder | 1 | May 25th, 2002 02:41 PM |