Template:Faction feeling description: Difference between revisions

From Caves of Qud Wiki
Jump to navigation Jump to search
(refactor)
mNo edit summary
Line 1: Line 1:
<includeonly><!--
<includeonly>{{#switch:1
-->{{#switch:1
| {{#expr:{{{1|}}} <= -100}} = {{Tooltip|{{{1}}} Reputation|{{color|R|Hated}}}}
| {{#expr:{{{1|}}} <= -100}} = {{Tooltip|{{{1}}} Reputation|{{color|R|Hated}}}}
| {{#expr:{{{1|}}} <= -50}}  = {{Tooltip|{{{1}}} Reputation|{{color|r|Disliked}}}}
| {{#expr:{{{1|}}} <= -50}}  = {{Tooltip|{{{1}}} Reputation|{{color|r|Disliked}}}}

Revision as of 16:02, 4 October 2020

Takes a non-player creature's reputation value with a faction and displays the creature's relationship with that faction, with a tooltip displaying the value.


Usage:

{{FactionFeeling|21}}

...which results in: Neutral21 Reputation

Reputation Relationship
≥ 100 Loved
99 − 50 Liked
49 − -49 Neutral
-50 − -99 Disliked
≤ -100 Hated