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))
 
mNo edit summary
 
(15 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#get_web_data:
{{#get_web_data:
url=https://raw.githubusercontent.com/CleverRaven/Cataclysm-DDA/0.B-branch/data/json/monsters.json
url={{{{{version|stable}}}URL}}monsters.json
|format=json
|format=json
|data=name=name,glyph=symbol,color=color,hitpoints=hp,species=species,size=size,material=material,difficulty=diff,aggression=aggression,speed=speed,meleesk=melee_skill,melee_dice=melee_dice,melee_dice_sides=melee_dice_sides,cutdamage=melee_cut,dodgesk=dodge,basharmor=armor_bash,cutarmor=armor_cut,dropchance=death_function,luminance=luminance,flags=flags,morale=morale,ondeath=death_function,description=description,special_attacks=special_attacks
|data=name=name,glyph=symbol,color=color,hitpoints=hp,species=species,size=size,material=material,difficulty=diff,aggression=aggression,speed=speed,meleesk=melee_skill,melee_dice=melee_dice,melee_dice_sides=melee_dice_sides,cutdamage=melee_cut,dodgesk=dodge,basharmor=armor_bash,cutarmor=armor_cut,dropchance=death_function,luminance=luminance,flags=flags,morale=morale,ondeath=death_function,description=description,special_attacks=special_attacks
|filters=name={{{name|zombie}}}
|filters=name={{lc:{{{name|zombie}}}}}
}}
}}


Line 13: Line 13:
|headerstyle = color:#990000;
|headerstyle = color:#990000;


|title={{igs|{{#external_value:glyph}}|{{#external_value:color}}}} {{#external_value:name}}
|title={{igs|{{#external_value:glyph}}|{{#external_value:color}}}} {{#external_value:name}}<br\><span style="font-size:0.8em;">Versions:<br\>
<nowiki>[</nowiki>{{#ifexist: {{{name|}}} | [[{{{name|}}}|Stable]] | [{{fullurl:{{{name|}}}|action=edit&preload=Template:enemies/PreloadTest&preloadparams%5b%5d=stable}} Stable (create)]}}<nowiki>] - [</nowiki>{{#ifexist: {{{name|}}} (Experimental) | [[{{{name|}}} (Experimental)|Experimental]] | [{{fullurl::{{{name|}}} (Experimental)|action=edit&preload=Template:enemiesExperimental/PreloadTest&preloadparams%5b%5d=experimental}} Experimental (create)]}}<nowiki>]</nowiki></span>


|header1=General
|header1=General
Line 86: Line 87:
|data19={{#external_value:flags}}
|data19={{#external_value:flags}}


}}
}}__NOTOC__{{quote|{{#external_value:description}}}}
__NOTOC__
{{quote|{{#external_value:description}}}}


<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 105:


<noinclude>
<noinclude>
[[Category:Sandbox]]
[[Category:sandbox]]
</noinclude>
</noinclude>

Latest revision as of 09:36, 20 December 2014


Z zombie<br\>Versions:<br\>

[[[[:Template:Fullurl:]] Stable (create)]] - [Experimental (create)]

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.