Are variations documented somewhere

The place to post your WML questions and answers.

Moderator: Forum Moderators

Forum rules
  • Please use [code] BBCode tags in your posts for embedding WML snippets.
  • To keep your code readable so that others can easily help you, make sure to indent it following our conventions.
Post Reply
white_haired_uncle
Posts: 1206
Joined: August 26th, 2018, 11:46 pm
Location: A country place, far outside the Wire

Are variations documented somewhere

Post by white_haired_uncle »

The only place I could find a list of variations was in the in-game help for walking corpses, which lists Wose, which does not work (wose does). Are these documented somewhere?

It seems to me that either the help should be updated or the variation, or make variation case-insensitive, but they should match.

Code: Select all

       
       #define ZOMBIE_WOSE SIDE X Y
        [unit]
            side={SIDE}
            type=Walking Corpse
            #variation=Wose       # nope
            variation=wose          # yep
 
Speak softly, and carry Doombringer.
User avatar
Pentarctagon
Project Manager
Posts: 5566
Joined: March 22nd, 2009, 10:50 pm
Location: Earth (occasionally)

Re: Are variations documented somewhere

Post by Pentarctagon »

I would guess that what you're seeing in the help is the variation_name, not the variation_id. As far as I know they aren't documented anywhere, so you'd need to check the [variation]s in Corpse_Walking.cfg.
99 little bugs in the code, 99 little bugs
take one down, patch it around
-2,147,483,648 little bugs in the code
User avatar
octalot
General Code Maintainer
Posts: 786
Joined: July 17th, 2010, 7:40 pm
Location: Austria

Re: Are variations documented somewhere

Post by octalot »

For terrains, enabling debug mode and then opening the help displays extra information such as the id and terrain code. Would adding a similar feature for units be helpful?
User avatar
Ravana
Forum Moderator
Posts: 3015
Joined: January 29th, 2012, 12:49 am
Location: Estonia
Contact:

Re: Are variations documented somewhere

Post by Ravana »

No, you want to copy them anyways.
white_haired_uncle
Posts: 1206
Joined: August 26th, 2018, 11:46 pm
Location: A country place, far outside the Wire

Re: Are variations documented somewhere

Post by white_haired_uncle »

octalot wrote: March 28th, 2024, 7:40 am For terrains, enabling debug mode and then opening the help displays extra information such as the id and terrain code. Would adding a similar feature for units be helpful?
That was the first place I looked, so I'd say it would.

There may be better places, just because I happened to look there first doesn't mean anyone else would do the same, but it would be much better (I ended up searching for an example and getting lucky that I noticed those entries were not capitalized). And the wiki could be updated to point the user there. Having the game generate the data from existing units seems more complete and robust than someone manually adding a list to the wiki.
Speak softly, and carry Doombringer.
Post Reply