Difference between revisions of "Template:Creature/is humanoid"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
m (test)
m (reading the documentation would probably help)
Line 1: Line 1:
{{#switch:{{#rsplit|{{#df_tagvalue:{{{{{ns|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}/raw}}|BODY||NOT_HUMANOID}}|:|1}}|HUMANOID|HUMANOID_SIMPLE=1|#default=0}} ({{#df_tagvalue:{{{{{ns|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}/raw}}|BODY||NOT_HUMANOID}})<noinclude>
+
{{#switch:{{#rsplit|{{#df_tagvalue:{{{{{ns|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}/raw}}|BODY|0|NOT_HUMANOID}}|:|1}}|HUMANOID|HUMANOID_SIMPLE=1|#default=0}} ({{#df_tagvalue:{{{{{ns|{{NAMESPACE}}}}}:{{{1|{{PAGENAME}}}}}/raw}}|BODY|0|NOT_HUMANOID}})<noinclude>
 
Returns 1 if the given creature is a humanoid, 0 otherwise
 
Returns 1 if the given creature is a humanoid, 0 otherwise
 
===Examples===
 
===Examples===

Revision as of 20:21, 15 April 2013

0 (NOT_HUMANOID) Returns 1 if the given creature is a humanoid, 0 otherwise

Examples

0 (INSECT:2EYES:HEART:GUTS:BRAIN:MOUTH) 0 (HUMANOID_4ARMS:2EYES:HEART:GUTS:BRAIN:MOUTH)