- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
Template talk:Creature/is humanoid
Is there any way to do wildcard matches with DFRawFunctions? I was going to add all the humanoid creature variations (HUMANOID_HOOF, the zillion different numbers of limbs each type can have, etc.), but if there's any way to just search for any body tag that begins "HUMANOID_", that would be infinitely preferable.--Zzedar (talk) 23:55, 15 April 2013 (UTC)
- I couldn't find any creatures that had tags like those, but something like this:
{{#rsplit:{{#df_tagentry:{{/raw}}|BODY|0|1|NOT_HUMANOID}}|_|0}}
- should give you "HUMANOID" or something else, which can then be checked with #ifeq:
{{#ifeq:{{#rsplit:{{#df_tagentry:{{/raw}}|BODY|0|1|NOT_HUMANOID}}|_|0}}|HUMANOID|1|0}}
- Example: Antman - 1, Cat - 0, Ettin - 1
- Implemented. Thanks for the idea. --Lethosor (talk) 00:27, 16 April 2013 (UTC)
- Uh-oh... barn owls should definitely not be included in this. The #switch may have been a better way to determine this after all. Thoughts? --Lethosor (talk) 00:32, 16 April 2013 (UTC)
- Looks like a lot of birds use HUMANOID_ARMLESS. On the other hand, so do crab men. I guess we could exclude (armless + 2 wings), but that's awfully hacky. Let's take a step back. What is the purpose of this category? I mean, what attributes of humanoidness do we care about that it's worth making a category for them? We should just check those.--Zzedar (talk) 00:54, 16 April 2013 (UTC)
:::::Or other creatures that have human-like bodies (which there aren't that many of). I'd intended to include all creatures with BODY_HUMANOID or some other similar tag, but then there's the problem with HUMANOID_ARMLESS creatures. Maybe just excluding the HUMANOID_ARMLESS tag is easiest, but then another tag's bound to turn up. --Lethosor (talk) 01:12, 16 April 2013 (UTC) Checking that...