public inbox for xconq7@sourceware.org
 help / color / mirror / Atom feed
* GDL Notice: New Tables and Unit Type Properties for Wrecking
@ 2004-06-06  7:12 Eric McDonald
  0 siblings, 0 replies; only message in thread
From: Eric McDonald @ 2004-06-06  7:12 UTC (permalink / raw)
  To: xconq7

Xconq now supports more advanced wrecking behavior than previously.

Unit types have a new property, 'destruction-result', which is a
weighted list of possible outcomes for a dying unit. This list is very
similar to the 'encounter-result' list. Currently, there are just two
choices: 'vanish' and 'table'. The 'vanish' result means that unit will
vanish, even if it would normally wreck into something else. The 'table'
result means that unit will follow normal rules regarding how its death
it handled. The normal rules include the new tables, which I will
mention below.

There are 3 new tables: 'wrecked-type-if-killed',
'wrecked-type-if-attrited', and 'wrecked-type-if-starved'.
'wrecked-type-if-killed' determines what unit type the wrecked unit will
become, based on what non-wrecked type it is and what the type of the
unit that killed it is.
'wrecked-type-if-attrited' determines what unit type the wrecked unit
will become, based on what non-wrecked type it is and what the type of
the terrain that wore it down is.
'wrecked-type-if-starved' determines what unit type the wrecked unit
will become, based on what non-wrecked type it is and what the type of
material that it starved for want of is.
All 3 of these tables default to 'non-unit', which indicates that the
older 'wrecked-type' unit property will be used to look up the
'wrecked-type'. You can override the 'wrecked-type' property for
killing, attrition, and starvation by setting these tables; in all other
unit death cases, only 'wrecked-type' will be considered.

To see an example of how these tables and properties can be used, you
can peruse the 'wreckreation.g' game that I added to the games library a
little while ago. (Hint: watch what vampires do to beings of living
flesh when they kill them.)

  Enjoy,
    Eric

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-06-06  7:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-06-06  7:12 GDL Notice: New Tables and Unit Type Properties for Wrecking Eric McDonald

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).