This is the mail archive of the xconq7@sources.redhat.com mailing list for the Xconq project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Static Occupant Bonuses to Attack


>I think the static bonuses stems from a more RPG style
>of wargaming, and so it suits a smaller scale.  In the
>case of the game I'm working on, we'll use it to
>simulate the effect of various equipment on troops,
>some of which would give a static bonus and some a
>strength multiplier.
>
>The second effect, determining a unit's attributes as
>the sum of its occupants' attributes, is an attempt to
>model customized armies, wherein the player decides
>what divisions make up the army.  This would allow a
>player some flexibility in designing their army (Say
>they want it fully mechanized, or mobilized, or with
>integral air support).  The designer would only need
>to create the constituent units and then the player
>has a variety of combinations to try out.

This is really two variants of the same problem, since you can use the same
additive GDL table. You would just specify that the added value equals the
occ's own attribute in the second case.

>As far as I can tell, these can't quite be implemented
>within Xconq as it is.  Is it possible for me to
>define my own tables within GDL or does this need to
>be done within the code?

You need to add a new table in table.def and also support for this table in
the kernel (e.g. combat.c in this case). This is easy to do, particularly
since you can model it on the multiplicative table already supported in the
code. I'm busy with the unit view code right now, but if you are willing to
give it a try (and also test that it works as expected) I can check in the
code.

Hans



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]