Difference between revisions of "Template:Combatencounter"
(better name, Special Attack) |
Hoyifung04 (talk | contribs) (Allowing up to six hit/miss messages, but leaving undocumented as it's not common to have more than three) |
||
(33 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>__NOTOC__ | <includeonly>__NOTOC__ | ||
− | {{blackbox|{{{image}}}}} | + | {{blackbox|{{{image}}}|{{{name}}}}} |
You are fighting {{#switch:{{{indef|?}}}|?=???[[Category:Incomplete]]|!=|#default={{{indef}}}}} {{{name}}}. | You are fighting {{#switch:{{{indef|?}}}|?=???[[Category:Incomplete]]|!=|#default={{{indef}}}}} {{{name}}}. | ||
− | {{{desc}}} | + | {{#if:{{{desc|}}}|{{{desc}}}|''Empty Description''[[Category:Empty Description]]}} |
<br clear="all"> | <br clear="all"> | ||
Your opponent attacks ...<br> | Your opponent attacks ...<br> | ||
Line 11: | Line 11: | ||
{{#if:{{{hit2|}}}|*{{{hit2}}}}} | {{#if:{{{hit2|}}}|*{{{hit2}}}}} | ||
{{#if:{{{hit3|}}}|*{{{hit3}}}}} | {{#if:{{{hit3|}}}|*{{{hit3}}}}} | ||
+ | {{#if:{{{hit4|}}}|*{{{hit4}}}}} | ||
+ | {{#if:{{{hit5|}}}|*{{{hit5}}}}} | ||
+ | {{#if:{{{hit6|}}}|*{{{hit6}}}}} | ||
<br> | <br> | ||
− | {{#if:{{{pronoun|}}}|{{{pronoun}}}|???[[Category:Incomplete]]}} hits you for {{element|physical|X}}.<br> | + | {{#if:{{{pronoun|}}}|{{{pronoun}}}|???[[Category:Incomplete]]}} {{#ifeq:{{{pronoun|}}}|They|hit|hits}} you for {{element|physical|X}}.<br> |
'''Critical hit message:'''<br> | '''Critical hit message:'''<br> | ||
− | <span style="color:#507630;">Your opponent has a critical hit! {{{pronoun}}} hits you for </span>{{element|physical|X}}.<br> | + | <span style="color:#507630;">Your opponent has a critical hit! {{{pronoun}}} {{#ifeq:{{{pronoun|}}}|They|hit|hits}} you for </span>{{element|physical|X}}.<br> |
{{#if:{{{effect|}}}|<br>'''Special Attack:'''<br> | {{#if:{{{effect|}}}|<br>'''Special Attack:'''<br> | ||
− | {{{effect}}}<br>[[Category: | + | {{{effect}}}<br>[[Category:Enemies with Special Attack]] |
}} | }} | ||
Line 26: | Line 29: | ||
{{#if:{{{miss2|}}}|*{{{miss2}}}}} | {{#if:{{{miss2|}}}|*{{{miss2}}}}} | ||
{{#if:{{{miss3|}}}|*{{{miss3}}}}} | {{#if:{{{miss3|}}}|*{{{miss3}}}}} | ||
+ | {{#if:{{{miss4|}}}|*{{{miss4}}}}} | ||
+ | {{#if:{{{miss5|}}}|*{{{miss5}}}}} | ||
+ | {{#if:{{{miss6|}}}|*{{{miss6}}}}} | ||
<br> | <br> | ||
Line 38: | Line 44: | ||
{{#if:{{{xp|}}}|{{exp|amt={{{xp}}}}}|''Unspecified XP''[[Category:Incomplete]]}} | {{#if:{{{xp|}}}|{{exp|amt={{{xp}}}}}|''Unspecified XP''[[Category:Incomplete]]}} | ||
− | {{#if:{{{item1|}}}|{{obtain|{{{item1}}}|{{{image1}}}}} ({{#if:{{{drop1|}}}|{{{drop1}}} | + | {{#if:{{{item1|}}}|{{obtain|{{{item1}}}|{{{image1}}}}} ({{droprate|{{#if:{{{drop1|}}}|{{{drop1}}}|!}}}})<br>}} |
− | {{#if:{{{item2|}}}|{{obtain|{{{item2}}}|{{{image2}}}}} ({{#if:{{{drop2|}}}|{{{drop2}}} | + | {{#if:{{{item2|}}}|{{obtain|{{{item2}}}|{{{image2}}}}} ({{droprate|{{#if:{{{drop2|}}}|{{{drop2}}}|!}}}})<br>}} |
− | {{#if:{{{item3|}}}|{{obtain|{{{item3}}}|{{{image3}}}}} ({{#if:{{{drop3|}}}|{{{drop3}}} | + | {{#if:{{{item3|}}}|{{obtain|{{{item3}}}|{{{image3}}}}} ({{droprate|{{#if:{{{drop3|}}}|{{{drop3}}}|!}}}})<br>}} |
− | {{#if:{{{item4|}}}|{{obtain|{{{item4}}}|{{{image4}}}}} ({{#if:{{{drop4|}}}|{{{drop4}}} | + | {{#if:{{{item4|}}}|{{obtain|{{{item4}}}|{{{image4}}}}} ({{droprate|{{#if:{{{drop4|}}}|{{{drop4}}}|!}}}})<br>}} |
− | {{#if:{{{item5|}}}|{{obtain|{{{item5}}}|{{{image5}}}}} ({{#if:{{{drop5|}}}|{{{drop5}}} | + | {{#if:{{{item5|}}}|{{obtain|{{{item5}}}|{{{image5}}}}} ({{droprate|{{#if:{{{drop5|}}}|{{{drop5}}}|!}}}})<br>}} |
− | {{#if:{{{item6|}}}|{{obtain|{{{item6}}}|{{{image6}}}}} ({{#if:{{{drop6|}}}|{{{drop6}}} | + | {{#if:{{{item6|}}}|{{obtain|{{{item6}}}|{{{image6}}}}} ({{droprate|{{#if:{{{drop6|}}}|{{{drop6}}}|!}}}})<br>}} |
− | {{#if:{{{item7|}}}|{{obtain|{{{item7}}}|{{{image7}}}}} ({{#if:{{{drop7|}}}|{{{drop7}}} | + | {{#if:{{{item7|}}}|{{obtain|{{{item7}}}|{{{image7}}}}} ({{droprate|{{#if:{{{drop7|}}}|{{{drop7}}}|!}}}})<br>}} |
− | {{#if:{{{item8|}}}|{{obtain|{{{item8}}}|{{{image8}}}}} ({{#if:{{{drop8|}}}|{{{drop8}}} | + | {{#if:{{{item8|}}}|{{obtain|{{{item8}}}|{{{image8}}}}} ({{droprate|{{#if:{{{drop8|}}}|{{{drop8}}}|!}}}})<br>}} |
− | {{#if:{{{item9|}}}|{{obtain|{{{item9}}}|{{{image9}}}}} ({{#if:{{{drop9|}}}|{{{drop9}}} | + | {{#if:{{{item9|}}}|{{obtain|{{{item9}}}|{{{image9}}}}} ({{droprate|{{#if:{{{drop9|}}}|{{{drop9}}}|!}}}})<br>}} |
+ | {{#if:{{{item10|}}}|{{obtain|{{{item10}}}|{{{image10}}}}} ({{droprate|{{#if:{{{drop10|}}}|{{{drop10}}}|!}}}})<br>}} | ||
+ | {{#if:{{{item11|}}}|{{obtain|{{{item11}}}|{{{image11}}}}} ({{droprate|{{#if:{{{drop11|}}}|{{{drop11}}}|!}}}})<br>}} | ||
{{#if:{{{postfight|}}}|{{{postfight}}}}} | {{#if:{{{postfight|}}}|{{{postfight}}}}} | ||
== Known resistances/weaknesses == | == Known resistances/weaknesses == | ||
− | {{#if:{{{ | + | {{#if:{{{newres|}}}|{{{newres}}}|''Unspecified''[[Category:Unspecified Resistance]]}} |
+ | {{#if:{{{res|}}}|<br><small>Former resistances were {{{res}}}, remember to remove this information from the page when resistances are spaded.</small>}} | ||
==Locations== | ==Locations== | ||
{{#if:{{{loc1|}}}|*[[{{{loc1}}}]]<br>|''Unspecified Locations''[[Category:Incomplete]]}} | {{#if:{{{loc1|}}}|*[[{{{loc1}}}]]<br>|''Unspecified Locations''[[Category:Incomplete]]}} | ||
{{#if:{{{loc2|}}}|*[[{{{loc2}}}]]<br>}} | {{#if:{{{loc2|}}}|*[[{{{loc2}}}]]<br>}} | ||
− | {{#if:{{{loc3|}}}|*[[{{{loc3}}}]]}} | + | {{#if:{{{loc3|}}}|*[[{{{loc3}}}]]<br>}} |
+ | {{#if:{{{loc4|}}}|*[[{{{loc4}}}]]}} | ||
[[Category:Enemies|{{PAGENAME}}]] | [[Category:Enemies|{{PAGENAME}}]] | ||
− | </includeonly> | + | </includeonly><noinclude> |
− | |||
− | <noinclude> | ||
− | |||
=Template= | =Template= | ||
'''<nowiki>{{combatencounter</nowiki><br><nowiki> | '''<nowiki>{{combatencounter</nowiki><br><nowiki> | ||
Line 93: | Line 100: | ||
|drop5=</nowiki>'''''optional'' (use with item5)'''<br><nowiki> | |drop5=</nowiki>'''''optional'' (use with item5)'''<br><nowiki> | ||
|item6=</nowiki>'''''optional'''''<br><nowiki> | |item6=</nowiki>'''''optional'''''<br><nowiki> | ||
− | |image6=</nowiki>'''''optional'' (use with | + | |image6=</nowiki>'''''optional'' (use with item6)'''<br><nowiki> |
− | |drop6=</nowiki>'''''optional'' (use with | + | |drop6=</nowiki>'''''optional'' (use with item6)'''<br><nowiki> |
|postfight=</nowiki>'''''optional'''''<br><nowiki> | |postfight=</nowiki>'''''optional'''''<br><nowiki> | ||
− | | | + | |newres=</nowiki>'''''(all resistances and weaknesses discovered)'''''<br><nowiki> |
+ | |res=</nowiki>'''''(old resistances before the May 2011 update; remove once new resistances are determined)'''''<br><nowiki> | ||
|loc1=</nowiki><br><nowiki> | |loc1=</nowiki><br><nowiki> | ||
|loc2=</nowiki>'''''optional'''''<br><nowiki> | |loc2=</nowiki>'''''optional'''''<br><nowiki> | ||
|loc3=</nowiki>'''''optional'''''<br><nowiki> | |loc3=</nowiki>'''''optional'''''<br><nowiki> | ||
+ | |loc4=</nowiki>'''''optional'''''<br><nowiki> | ||
}}</nowiki><br> | }}</nowiki><br> | ||
+ | |||
=Usage= | =Usage= | ||
'''Adding...''' | '''Adding...''' |
Latest revision as of 21:23, 6 September 2015
Template
{{combatencounter
|indef=(the indefinite article. a, an, or ! if none)
|pronoun=
|name=
|desc=
|image=
|hit1=(set to ! if no specific hit messages)
|hit2=optional
|hit3=optional
|effect=optional
|miss1=(set to ! if no specific miss messages)
|miss2=optional
|miss3=optional
|chips=(set to 0 if no chips drop)
|xp=
|item1=optional
|image1=optional (use with item1)
|drop1=optional (use with item1)
|item2=optional
|image2=optional (use with item2)
|drop2=optional (use with item2)
|item3=optional
|image3=optional (use with item3)
|drop3=optional (use with item3)
|item4=optional
|image4=optional (use with item4)
|drop4=optional (use with item4)
|item5=optional
|image5=optional (use with item5)
|drop5=optional (use with item5)
|item6=optional
|image6=optional (use with item6)
|drop6=optional (use with item6)
|postfight=optional
|newres=(all resistances and weaknesses discovered)
|res=(old resistances before the May 2011 update; remove once new resistances are determined)
|loc1=
|loc2=optional
|loc3=optional
|loc4=optional
}}
Usage
Adding...
{{combatencounter
|pronoun=It
|indef=!
|name=Rosencrantz and Guildenstern
|desc=The erstwhile companions and spies for the evil king Claudius seem to have lost their Danish prince, Hamlet. So now they're looking for anyone else they can drag off with them to England for execution.
|image=Rosencrantz-guildenstern.jpg
|hit1=Guildenstern flips a coin. It's heads, which means he gets to hit you. You wonder if the coin is rigged, and he hits you while you're distracted. {{hitnote|{{element|fire|X}}}}
|hit2="Would you like to play a game of Questions?" Rosencrantz asks.
You say, "Sure, that sounds like fun!"
You lose, and they punch you in the shoulder, really hard.
|miss1=They guilden your rosen and then stern your crantz. It sounds unpleasant, but it's not so bad. Sort of like when the chiropractor pops every joint in your neck at once. After the initial horror fades, you actually feel better.
|miss2=Rosencrantz flips a coin. It's heads, which means he gets to hit you. You're ready, though, and dodge successfully.
|miss3="Would you like to play a game of Questions?" Guildenstern asks.
"How does it work?" you ask in return.
"Well," says Guildenstern, "the first one to not ask a question loses." You cock one eyebrow and smile. Guildenstern looks at you for a second and then hangs his head in shame.
|chips=83-134
|xp=101
|item1=decorated jerkin
|image1=Jerkin.gif
|drop1=10
|item2=deterministic coin
|image2=Coin.jpg
|drop2=20
|item3=prabble crossbow
|image3=Crossbow.gif
|loc1=Cube Theater
}}
Results in...
You are fighting Rosencrantz and Guildenstern.
The erstwhile companions and spies for the evil king Claudius seem to have lost their Danish prince, Hamlet. So now they're looking for anyone else they can drag off with them to England for execution.
Your opponent attacks ...
Hit messages:
- Guildenstern flips a coin. It's heads, which means he gets to hit you. You wonder if the coin is rigged, and he hits you while you're distracted. (fire) damage
- "Would you like to play a game of Questions?" Rosencrantz asks.
You say, "Sure, that sounds like fun!"
You lose, and they punch you in the shoulder, really hard.
It hits you for X damage.
Hit notes:
The first message does fire damage. The second does physical damage.
Critical hit message:
Your opponent has a critical hit! It hits you for damage.
Miss messages:
- They guilden your rosen and then stern your crantz. It sounds unpleasant, but it's not so bad. Sort of like when the chiropractor pops every joint in your neck at once. After the initial horror fades, you actually feel better.
- Rosencrantz flips a coin. It's heads, which means he gets to hit you. You're ready, though, and dodge successfully.
- "Would you like to play a game of Questions?" Guildenstern asks.
"How does it work?" you ask in return.
"Well," says Guildenstern, "the first one to not ask a question loses." You cock one eyebrow and smile. Guildenstern looks at you for a second and then hangs his head in shame.
Fumble messages:
Your foe fumbles! It takes X damage.
Victory! You beat up your foe and win the combat!
You gain 101 experience.
You got an item: decorated jerkin (10%)
You got an item: deterministic coin (20%)
You got an item: prabble crossbow (Unspecified Drop Rate)
Known resistances/weaknesses
Unspecified
Locations
Notes
- This template autocategorizes the page into Category:Enemies.