v50 Steam/Premium information for editors
- 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.
This notice may be cached—the current version can be found here.
Editing Template talk:Creature/is humanoid
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | ' | + | 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.--[[User:Zzedar|Zzedar]] ([[User talk:Zzedar|talk]]) 23:55, 15 April 2013 (UTC) |
+ | :I couldn't find any creatures that had tags like those, but something like this: | ||
+ | <pre>{{#rsplit:{{#df_tagentry:{{/raw}}|BODY|0|1|NOT_HUMANOID}}|_|0}}</pre> | ||
+ | :should give you "HUMANOID" or something else, which can then be checked with #ifeq: | ||
+ | <pre>{{#ifeq:{{#rsplit:{{#df_tagentry:{{/raw}}|BODY|0|1|NOT_HUMANOID}}|_|0}}|HUMANOID|1|0}}</pre> | ||
+ | :where 1=yes, 0=no. --{{User:Lethosor/sig}} 00:24, 16 April 2013 (UTC) | ||
− | + | :Example: Antman - {{#ifeq:{{#rsplit:{{#df_tagentry:{{DF2012:Antman/raw}}|BODY|0|1|NOT_HUMANOID}}|_|0}}|HUMANOID|1|0}}, Cat - {{#ifeq:{{#rsplit:{{#df_tagentry:{{DF2012:Cat/raw}}|BODY|0|1|NOT_HUMANOID}}|_|0}}|HUMANOID|1|0}}, Ettin - {{#ifeq:{{#rsplit:{{#df_tagentry:{{DF2012:Ettin/raw}}|BODY|0|1|NOT_HUMANOID}}|_|0}}|HUMANOID|1|0}} | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− |