DisplayPower


<!—

[varsFromStrProp(macro.args)]

[switch(PowerType), code:
case “At Will”:{
[TitleBGColor = “bgcolor=‘#004400’”]
[TitleFontColor = “<font color=‘#FFFFFF’>”]};
case “Encounter”:{
[TitleBGColor = “bgcolor=‘#660000’”]
[TitleFontColor = “<font color=‘#FFFFFF’>”]};
case “Daily”:{
[TitleBGColor = “bgcolor=‘#444444’”]
[TitleFontColor = “<font color=‘#FFFFFF’>”]};
case “Item”:{
[TitleBGColor = “bgcolor=‘#FFCC00’”]
[TitleFontColor = “<font color=‘#000000’>”]};
default:{
[TitleBGColor = “bgcolor=‘#FFFFFF’”]
[TitleFontColor = “<font color=‘#000000’>”]}]

[DescBGColor = “bgcolor=‘#CCCC99’”]
[DescFontColor = “<font color=‘#000000’>”]

[HitTextCount = If(HitText == “None”, 0, 1)]
[MissTextCount = If(MissText == “None”, 0, 1)]
[EffectTextCount = If(EffectText == “None”, 0, 1)]
[SpecialTextCount = If(SpecialText == “None”, 0, 1)]

[AttackDisplay = 0]

[IF(NeedAttackRoll == “Yes”), CODE:
{
[AttackData = "
PowerName = “+PowerName+”;
AttBonus = “+AttBonus+”;
DmgBonus = “+DmgBonus+”;
CritDmgBonus = “+CritDmgBonus+”;
DefType = “+DefType+”;
DmgType = “+DmgType+”;
DmgRoll = “+DmgRoll+”;
Crit = “+Crit+”;
CritDmgRoll = “+CritDmgRoll+”;"]
[AttackDisplay = 1]
}]

—>

<table border=‘0’ cellpadding=‘1’ cellspacing=‘0’ width=‘100%’ {TitleBGColor}>
{TitleFontColor}
<tr>
<td valign=top align=center>
<font size=4><b> {PowerName} </b></font>
</td>
</tr>
</table>

<table border=‘0’ cellpadding=‘1’ cellspacing=‘0’ width=‘100%’ {TitleBGColor}>
{TitleFontColor}
<tr valign=bottom>
<font size=2> {AttType}
<td align=right valign=bottom>
<font size=2> {ActionType}
</td>
</tr>
</font>
</table>

[COUNT(AttackDisplay), CODE:
{
[MACRO(“DisplayAttack@this”): AttackData]
}]

[COUNT(HitTextCount,""),CODE:
{
<table border=‘0’ cellpadding=‘1’ cellspacing=‘0’ width=‘100%’ {DescBGColor}>
{DescFontColor}
<tr>
<td>
<font size=3><b> <u>Hit:</u> </b><i> {HitText} </i>
</td>
</tr>
</font>
</table>
}]

[COUNT(MissTextCount,""),CODE:
{
<table border=‘0’ cellpadding=‘1’ cellspacing=‘0’ width=‘100%’ {DescBGColor}>
{DescFontColor}
<tr>
<td>
<font size=3><b> <u>Miss:</u> </b><i> {MissText} </i>
</td>
</tr>
</font>
</table>
}]

[COUNT(EffectTextCount,""),CODE:
{
<table border=‘0’ cellpadding=‘1’ cellspacing=‘0’ width=‘100%’ {DescBGColor}>
{DescFontColor}
<tr>
<td>
<font size=3><b> <u>Effect:</u> </b><i> {EffectText} </i>
</td>
</tr>
</font>
</table>
}]

[COUNT(SpecialTextCount,""),CODE:
{
<table border=‘0’ cellpadding=‘1’ cellspacing=‘0’ width=‘100%’ {DescBGColor}>
{DescFontColor}
<tr>
<td>
<font size=3><b> <u>Special:</u> </b><i> {SpecialText} </i>
</td>
</tr>
</font>
</table>
}]

<table border=‘0’ cellpadding=‘1’ cellspacing=‘0’ width=‘100%’ {TitleBGColor}>
{TitleFontColor}
<tr>
<td valign=top>
<font size=3><i> {FlavorText} </i>
</td>
</tr>
</font>
</table>


Return to Sample MapTool Macros

DisplayPower

Nieda-Harsas Bureau of Tourism scipio