Template:Faction feeling description: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(refactor) |
||
Line 1: | Line 1: | ||
<includeonly> | <includeonly><!-- | ||
{{# | -->{{#switch:1 | ||
</includeonly><noinclude> | | {{#expr:{{{1|}}} <= -100}} = {{Tooltip|{{{1}}} Reputation|{{color|R|Hated}}}} | ||
| {{#expr:{{{1|}}} <= -50}} = {{Tooltip|{{{1}}} Reputation|{{color|r|Disliked}}}} | |||
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. | | {{#expr:{{{1|}}} <= 49}} = {{Tooltip|{{{1}}} Reputation|{{color|C|Neutral}}}} | ||
| {{#expr:{{{1|}}} >= 100}} = {{Tooltip|{{{1}}} Reputation|{{color|G|Loved}}}} | |||
| {{#expr:{{{1|}}} >= 50}} = {{Tooltip|{{{1}}} Reputation|{{color|g|Liked}}}} | |||
| ?? | |||
}}</includeonly><noinclude><!-- | |||
-->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: | Usage: | ||
< | <pre> | ||
{{FactionFeeling|21}} | {{FactionFeeling|21}} | ||
</ | </pre> | ||
...which results in: {{FactionFeeling|21}} | ...which results in: {{FactionFeeling|21}} | ||
Line 28: | Line 33: | ||
|} | |} | ||
</noinclude> | [[Category:Templates]]</noinclude> |
Revision as of 16:01, 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 |