• Please note: In an effort to ensure that all of our users feel welcome on our forums, we’ve updated our forum rules. You can review the updated rules here: http://forums.wolflair.com/showthread.php?t=5528.

    If a fellow Community member is not following the forum rules, please report the post by clicking the Report button (the red yield sign on the left) located on every post. This will notify the moderators directly. If you have any questions about these new rules, please contact support@wolflair.com.

    - The Lone Wolf Development Team

Seeking validation help

  • Thread starter Thread starter rholte at blarg.com
  • Start date Start date
R

rholte at blarg.com

Guest
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/eSIIAA/yQLSAA/IMSolB/TM
--------------------------------------------------------------------~->
 
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/y20IAA/yQLSAA/IMSolB/TM
--------------------------------------------------------------------~->
 
Back
Top