Template:Creature mutation: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
mNo edit summary
Line 6: Line 6:


<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{creature mutation/Test|Burrowing Claws|3}}
{{creature mutation|Burrowing Claws|3}}
</syntaxhighlight>
</syntaxhighlight>
{{creature mutation/Test|Burrowing Claws|3}}
{{creature mutation|Burrowing Claws|3}}


If mutation level is 0(or not set), the mutation level will not be shown (used for 1 pt mutations). If the mutation is a defect, a (D) will automatically be added:
If mutation level is 0(or not set), the mutation level will not be shown (used for 1 pt mutations). If the mutation is a defect, a (D) will automatically be added:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{creature mutation/Test|Albino}}
{{creature mutation|Albino}}
</syntaxhighlight>
</syntaxhighlight>
{{creature mutation/Test|Albino}}
{{creature mutation|Albino}}


This template also takes a third argument, the ego value of a creature. If the mutation is a mental mutation, it will add bonus levels based on the ego modifier.
This template also takes a third argument, the ego value of a creature. If the mutation is a mental mutation, it will add bonus levels based on the ego modifier.
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
{{creature mutation/Test|Psychometry|3|21}}
{{creature mutation|Psychometry|3|21}}
</syntaxhighlight>
</syntaxhighlight>
{{creature mutation/Test|Psychometry|3|21}}
{{creature mutation|Psychometry|3|21}}


</noinclude>
</noinclude>

Revision as of 23:49, 12 August 2019

This template defines the table "CreatureMutations". View table.

Template for use in Template:Character only.

The first argument is the mutation name, and the second is the mutation level (defaults to 0).

{{creature mutation|Burrowing Claws|3}}
Burrowing Claws (3)

If mutation level is 0(or not set), the mutation level will not be shown (used for 1 pt mutations). If the mutation is a defect, a (D) will automatically be added:

{{creature mutation|Albino}}
Albino (D)

This template also takes a third argument, the ego value of a creature. If the mutation is a mental mutation, it will add bonus levels based on the ego modifier.

{{creature mutation|Psychometry|3|21}}
Psychometry (3+2)