Ad placeholder

User:Crashaholic/ActionTemplate: Difference between revisions

Jump to navigation Jump to search
made two params smarter...-ish
m (minor)
(made two params smarter...-ish)
Line 23: Line 23:
{{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{damage|}}} | * {{{damage}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{recharge|}}} | * {{{recharge}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{duration|}}} | * {{Duration|{{{duration}}}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|
{{#if: {{{duration|}}}
|{{#ifeq:{{{duration|}}}| LR
|* {{Duration|Until Long Rest}}
|{{#ifeq: {{{duration|}}} |Perm
|* {{Duration|Permanent}}
|* {{Duration|{{{duration}}}}}
}}
}}
|{{blank}}
}}
}}
{{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{range|}}} | * {{{range}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{aoe|}}} | * {{{aoe}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|{{#if: {{{save|}}} | * {{SmallIcon|Save Throw Icons.png}}{{{save}}}| {{blank}}}}}} <!-- TODO: make this a bit smarter -->
{{trim|
{{#if: {{{save|}}}
| * {{SmallIcon|Saving Throw Icons.png}} {{#switch: {{#if: {{#pos:{{{save|}}}|,}} | {{#explode:{{{save|}}}|,|0}} | {{{save|}}}}}
| strength | Strength | str | STR = [[Saving Throw|STR Save]]
| dexterity | Dexterity | dex | DEX = [[Saving Throw|DEX Save]]
| constitution | Constitution | con | CON = [[Saving Throw|CON Save]]
| intelligence | Intelligence | int | INT = [[Saving Throw|INT Save]]
| wisdom | Wisdom | wis | WIS = [[Saving Throw|WIS Save]]
| charisma | Charisma | cha | CHA = [[Saving Throw|CHA Save]]
| #default = *[[Saving Throw]]
}}{{#if: {{#pos:{{{save|}}}|,}}
| (On Save: {{#explode:{{{save|}}}|,|1}})
}}| {{blank}}
}}
}}
{{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}}  
{{trim|{{#if: {{{additional|}}} | {{{additional}}}| {{blank}}}}}}  


Line 67: Line 92:
{| class="wikitable" style="width: 100%;"
{| class="wikitable" style="width: 100%;"
|-
|-
| Parameter Name  
! Parameter Name  
| Description  
! Description  
| Usage  
! Usage  
|-
|-
| {{C|description}}
| {{C|description}}
Line 90: Line 115:
* If a skill takes an <code><nowiki>{{action}}</nowiki></code>: <code><nowiki>| cost = action</nowiki></code>
* If a skill takes an <code><nowiki>{{action}}</nowiki></code>: <code><nowiki>| cost = action</nowiki></code>
** Result: <code>{{action}}</code>
** Result: <code>{{action}}</code>
* If a skill takes just a class resource like 2{{User:Crashaholic/KiShort}}s: <code><nowiki>| cost = ,2{{User:Crashaholic/KiShort}}s</nowiki></code>
* If a skill takes just a class resource like 2{{User:Tc/Ki}}s: <code><nowiki>| cost = ,2{{User:Tc/Ki}}s</nowiki></code>
** Result: <code>2{{User:Crashaholic/KiShort}}s</code>
** Result: <code>2{{User:Tc/Ki}}s</code>
| <code>cost = (<nowiki>{{action}}</nowiki> parameters), (text)</code><br/>
| <code>cost = (<nowiki>{{action}}</nowiki> parameters), (text)</code><br/>
<code>cost = (<nowiki>{{action}}</nowiki> parameters)</code><br/>
<code>cost = (<nowiki>{{action}}</nowiki> parameters)</code><br/>
Line 103: Line 128:


=Example=
=Example=
<pre>{{User:Crashaholic/ActionTemplate
| description = abc
| image = Fly Icon.png
| summary = fly you fools
| cost = action, 2{{User:Tc/Ki}}s
| damage = {{DamageInfo|1d4+1|Bludgeoning}}
| recharge = {{Recharge|Long Rest}}
| duration = LR
| save = DEX
| additional = * abcd
| higherlevels = go far
| notes = bar
| learns = {{class|Monk}} 3
}}
</pre>
{{User:Crashaholic/ActionTemplate
{{User:Crashaholic/ActionTemplate
| description = abc
| description = abc
Line 110: Line 150:
| damage = {{DamageInfo|1d4+1|Bludgeoning}}
| damage = {{DamageInfo|1d4+1|Bludgeoning}}
| recharge = {{Recharge|Long Rest}}
| recharge = {{Recharge|Long Rest}}
| duration = Until Long Rest
| duration = LR
| save = DEX
| save = DEX
| additional = * abcd
| additional = * abcd

Navigation menu