Template:Enemydescription1: Difference between revisions

From The Cataclysm: Dark Days Ahead Wiki
Jump to navigation Jump to search
(testing automatic retrieval of enemies data, directly from the game's json (no parsing other than that of the getdata extension))
 
m (getdata extension can't retrieve multidimensional arrays, so it'd need a (php) parser. Anyway, raw jsons should be copied locally and the data fed from there, instead of the github server, among other things.)
Line 91: Line 91:


<div style="font-family:Georgia, serif; background: #EBEBEB; color: dimgray; padding:2em; margin-left: 3em; margin-right: 20em; text-align:justify;">
<div style="font-family:Georgia, serif; background: #EBEBEB; color: dimgray; padding:2em; margin-left: 3em; margin-right: 20em; text-align:justify;">
This creature is a {{MStoname|{{#external_value:size}}}} {{speciestoname|{{#external_value:species}}}}. It's {{enemymelee|{{#external_value:meleesk}}}} fighter with {{enemyhp|{{#external_value:hitpoints}}}} hit points. It's {{enemyspeed|{{#external_value:speed}}}}, {{enemydodge|{{#external_value:dodgesk}}}}, has {{enemybasharmor|{{#external_value:basharmor}}}} armor against bashing weapons and {{enemycutarmor|{{#external_value:cutarmor}}}} armor against cutting ones (that includes [[Firearms ammo|bullets]]). <!-- Backwards compatibility -->{{#if:{{{specialabil|}}}|Its special ability allows it to {{esa|{{{specialabil|none}}}}} every {{{specialtime|0}}} turns}}<!-- Check for new first param name, and start sentence accordingly -->{{#if:{{{specialabil1|}}}|{{#if:{{{specialabil|}}}|<nowiki>;&nbsp;</nowiki>|Its special ability allows it to}} {{esa|{{{specialabil1|none}}}}} every {{{specialtime1|0}}} turns}}<!-- Check for next param and place comma if exists or otherwise wait for final punctuation (this check repeats for rest of params) -->{{#if:{{{specialabil2|}}}|<nowiki>;&nbsp;</nowiki>}}<!-- Check for next param value, etc -->{{#if:{{{specialabil2|}}}| {{esa|{{{specialabil2|none}}}}} every {{{specialtime2|0}}} turns}}{{#if:{{{specialabil3|}}}|<nowiki>;&nbsp;</nowiki>}}{{#if:{{{specialabil3|}}}| {{esa|{{{specialabil3|none}}}}} every {{{specialtime3|0}}} turns}}{{#if:{{{specialabil4|}}}|<nowiki>;&nbsp;</nowiki>}}{{#if:{{{specialabil4|}}}| {{esa|{{{specialabil4|none}}}}} every {{{specialtime4|0}}} turns}}{{#if:{{{specialabil5|}}}|<nowiki>;&nbsp;</nowiki>|}}{{#if:{{{specialabil5|}}}| {{esa|{{{specialabil5|none}}}}} every {{{specialtime5|0}}} turns}}<!-- Final punctuation if any special ability exists -->{{#if:{{{specialabil|}}}|.}}{{#if:{{{specialabil1|}}}|.}} <!-- A new luminance template should be created but, by I've placed a very simple check meanwhile -->{{#ifeq:{{{luminance|0}}}| 0 | |It emits light, so it can be spotted even in darkness.}}
This creature is a {{MStoname|{{#external_value:size}}}} {{speciestoname|{{#external_value:species}}}}. It's {{enemymelee|{{#external_value:meleesk}}}} fighter with {{enemyhp|{{#external_value:hitpoints}}}} hit points. It's {{enemyspeed|{{#external_value:speed}}}}, {{enemydodge|{{#external_value:dodgesk}}}}, has {{enemybasharmor|{{#external_value:basharmor}}}} armor against bashing weapons and {{enemycutarmor|{{#external_value:cutarmor}}}} armor against cutting ones (that includes [[Firearms ammo|bullets]]). <!-- Backwards compatibility -->{{#if:{{{specialabil|}}}|Its special ability allows it to {{esa|{{{specialabil|none}}}}} every {{{specialtime|0}}} turns}}<!-- Check for new first param name, and start sentence accordingly -->{{#if:{{{specialabil1|}}}|{{#if:{{{specialabil|}}}|<nowiki>;&nbsp;</nowiki>|Its special ability allows it to}} {{esa|{{{specialabil1|none}}}}} every {{{specialtime1|0}}} turns}}<!-- Check for next param and place comma if exists or otherwise wait for final punctuation (this check repeats for rest of params) -->{{#if:{{{specialabil2|}}}|<nowiki>;&nbsp;</nowiki>}}<!-- Check for next param value, etc -->{{#if:{{{specialabil2|}}}| {{esa|{{{specialabil2|none}}}}} every {{{specialtime2|0}}} turns}}{{#if:{{{specialabil3|}}}|<nowiki>;&nbsp;</nowiki>}}{{#if:{{{specialabil3|}}}| {{esa|{{{specialabil3|none}}}}} every {{{specialtime3|0}}} turns}}{{#if:{{{specialabil4|}}}|<nowiki>;&nbsp;</nowiki>}}{{#if:{{{specialabil4|}}}| {{esa|{{{specialabil4|none}}}}} every {{{specialtime4|0}}} turns}}{{#if:{{{specialabil5|}}}|<nowiki>;&nbsp;</nowiki>|}}{{#if:{{{specialabil5|}}}| {{esa|{{{specialabil5|none}}}}} every {{{specialtime5|0}}} turns}}<!-- Final punctuation if any special ability exists -->{{#if:{{{specialabil|}}}|.}}{{#if:{{{specialabil1|}}}|.}} <!-- A new luminance template should be created but, by I've placed a very simple check meanwhile -->{{#ifeq:{{#external_value:luminance}}| 0 | |It emits light, so it can be spotted even in darkness.}}


It has {{enemymorale|{{#external_value:morale}}}} morale and it's {{enemyaggro|{{#external_value:aggression}}}}. Being a {{speciestoname|{{#external_value:species}}}}, it's afraid of {{speciesfears|{{#external_value:species}}}}, and can be angered by {{speciesangers|{{#external_value:species}}}}. {{#if:{{{anger1|}}}|It can also be angered by {{#if:{{{anger1|}}}|{{eangers|{{{anger1|}}}}}|nothing}}{{#if:{{{anger2|}}}|, {{eangers|{{{anger2|}}}}}}}{{#if:{{{anger3|}}}|, {{eangers|{{{anger3|}}}}}}}{{#if:{{{anger4|}}}|, {{eangers|{{{anger4|}}}}}}}{{#if:{{{anger5|}}}|, {{eangers|{{{anger5|}}}}}}}.}} {{#if:{{{placate|}}}|Its anger is reduced by {{enemyplacate|{{{placate|}}}}}.}} {{#if:{{{fear1|}}}|It's also afraid of {{#if:{{{fear1|}}}|{{efears|{{{fear1|}}}}}|nothing}}{{#if:{{{fear2|}}}|, {{efears|{{{fear2|}}}}}}}{{#if:{{{fear3|}}}|, {{efears|{{{fear3|}}}}}}}{{#if:{{{fear4|}}}|, {{efears|{{{fear4|}}}}}}}{{#if:{{{fear5|}}}|, {{efears|{{{fear5|}}}}}}}.}}  
It has {{enemymorale|{{#external_value:morale}}}} morale and it's {{enemyaggro|{{#external_value:aggression}}}}. Being a {{speciestoname|{{#external_value:species}}}}, it's afraid of {{speciesfears|{{#external_value:species}}}}, and can be angered by {{speciesangers|{{#external_value:species}}}}. {{#if:{{{anger1|}}}|It can also be angered by {{#if:{{{anger1|}}}|{{eangers|{{{anger1|}}}}}|nothing}}{{#if:{{{anger2|}}}|, {{eangers|{{{anger2|}}}}}}}{{#if:{{{anger3|}}}|, {{eangers|{{{anger3|}}}}}}}{{#if:{{{anger4|}}}|, {{eangers|{{{anger4|}}}}}}}{{#if:{{{anger5|}}}|, {{eangers|{{{anger5|}}}}}}}.}} {{#if:{{{placate|}}}|Its anger is reduced by {{enemyplacate|{{{placate|}}}}}.}} {{#if:{{{fear1|}}}|It's also afraid of {{#if:{{{fear1|}}}|{{efears|{{{fear1|}}}}}|nothing}}{{#if:{{{fear2|}}}|, {{efears|{{{fear2|}}}}}}}{{#if:{{{fear3|}}}|, {{efears|{{{fear3|}}}}}}}{{#if:{{{fear4|}}}|, {{efears|{{{fear4|}}}}}}}{{#if:{{{fear5|}}}|, {{efears|{{{fear5|}}}}}}}.}}  
Line 106: Line 106:


<noinclude>
<noinclude>
[[Category:Sandbox]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Revision as of 09:52, 19 December 2014


Z zombie
General
Hit Points 80
Species zombie
Size human sized
Weight 81.50 kg
Material flesh
Speed 70
Combat
Melee Sk 4
Damage 2d3 bash + 0 cut
Dodge Sk 0
Protection
Bash Armor 0
Cut Armor 0
Other
Special Ab Error: no local variable "special_attacks" has been set.
Aggressiveness 100
Morale 100
Difficulty 3
Luminance 0
Flags SEES, HEARS, SMELLS, STUMBLES, WARM, BASHES, GROUP_BASH, POISON, BLEED, NO_BREATHE, VIS40, REVIVES
 A human body, swaying as it moves, an unstoppable rage is visible beneath its oily black eyes. 

This creature is a human sized zombie. It's a competent fighter with moderate hit points. It's slower than you, clumsy, has no armor against bashing weapons and no armor against cutting ones (that includes bullets).

It has extremely high morale and it's totally aggressive. Being a zombie, it's afraid of nothing in particular, and can be angered by nothing in particular.

It has no extra particularities, and nothing else.

Being made of flesh, it's vulnerable to nothing in particular.

In dynamic spawn mode, it will start to appear 2 hours after the game starts.

When it dies, nothing unusual happens, and there's a 0% chance of it dropping more things than normal.