Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Age variation tags: apply tags to a unit when it reaches a certain age.  (Read 240 times)

Hotty gremlin

  • Bay Watcher
    • View Profile

I propose the addition of age tags, which apply tags to a unit when it reaches a certain age.

Before I get into the meat of it, some use cases. Baby birds can't fly, baby bugs are usually completely different in body plans to their adult instars, baby frogs/toads gain limbs incrementally and, this is a stretch, maybe hydras grow more heads when they go through hydradolescense.

The age tag would have three arguments: time in years, time in days, and whether or not the creature is completely healed when the age tag is applied (for animals that molt/pupate/transform). After the tag is the indented block of tokens to be added. Let's look at this giant butterfly.

Quote
[AGE_VARIATION:1:0:HEALS]
    [FLIER]
    [BODY:2WINGS]
    [APPLY_CREATURE_VARIATION:insert cvar here that removes caterpillar/pupa specific anatomy]

When our butterfly reaches 1 years old, it gains wings and the ability to fly. That creature variation could be something that removes a jawed mouth and replaces it with a piercing proboscis. This example is pseudocode written on a napkin basically, but in brief:

Age variations basically add tags and/or apply creature variations when a unit reaches a certain age. From my experience the raw parser has no problems adding tags if they're properly formatted, or removing tags with creature variations, so this just seems like a natural extension of the systems we already have in-game.

This is about as elegant of an approach that I can think of to give proper life cycles, instars, molting and metamorphosis to animals that do so IRL. You figure most of what's going on in real life is just animals gaining or losing an ability, gaining or losing body parts.
Logged

DPh Kraken

  • Bay Watcher
  • [PRONOUNS:it:its:itself]
    • View Profile

It would definitely need its own data storage to be modifying units on the fly, but it could do a lot of interesting things especially when combined with this being a caste-level thing.
Caterpillars might even be better to handle as a separate caste (with the proper overrides to still not get freshly-hatched adult moths), since the body is completely regenerated during pupation (itself could be handled as a separate caste). Allow for branching paths and you might be able to implement huge evolution chains.
Certainly lots of mythical creatures gain additional powers as they grow up, like the kitsune's many tails and its immortality.
Logged
[CHEESE_PLANT] and [CHEESE_GRAPHICS] biggest fan
Mod releases