Difference between revisions of "User:Trang Oul/Sandbox/Template:Property"
| Line 46: | Line 46: | ||
| red-dmg = Damage Reduced by {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}} | | red-dmg = Damage Reduced by {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}} | ||
| red-dmg% = {{User:Trang Oul/Sandbox/Template:Property/Signed | | red-dmg% = {{User:Trang Oul/Sandbox/Template:Property/Signed | ||
| − | + | | {{{3}}} | |
| − | + | | {{{4}}} | |
| Physical Damage Received Reduced by | | Physical Damage Received Reduced by | ||
| Physical Damage Received Increased by | | Physical Damage Received Increased by | ||
| Line 98: | Line 98: | ||
| abs-cold% = Cold Absorb {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% | | abs-cold% = Cold Absorb {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% | ||
| abs-cold = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} Cold Absorb | | abs-cold = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} Cold Absorb | ||
| − | | dur = | + | | dur = Maximum Durability {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} |
| − | | dur% = | + | | dur% = Increase Maximum Durability {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% |
| regen = {{User:Trang Oul/Sandbox/Template:Property/Signed | | regen = {{User:Trang Oul/Sandbox/Template:Property/Signed | ||
| − | + | | {{{3}}} | |
| − | + | | {{{4}}} | |
| Replenish Life | | Replenish Life | ||
| Drain Life | | Drain Life | ||
| Replenish/Drain Life | | Replenish/Drain Life | ||
}} {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} | }} {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} | ||
| − | | thorns = | + | | thorns = Attacker Takes Damage of {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}} |
| − | | swing1 = | + | | swing1 = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% Increased Attack Speed |
| − | | swing2 = | + | | swing2 = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% Increased Attack Speed |
| − | | swing3 = | + | | swing3 = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% Increased Attack Speed |
| − | | gold% = | + | | gold% = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% Extra Gold from Monsters |
| − | | mag% = | + | | mag% = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% Better Chance of Getting Magic Items |
| knock = [[Knockback]] | | knock = [[Knockback]] | ||
| − | | regen-stam = | + | | regen-stam = Heal Stamina Plus {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% |
| − | | regen-mana = | + | | regen-mana = Regenerate Mana {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% |
| − | | stam = | + | | stam = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} Maximum Stamina |
| time = | | time = | ||
| manasteal = | | manasteal = | ||
Revision as of 11:40, 4 November 2026
Formats a property defines as a 4-tuple like in data files (magicprefix.txt, magicsuffix.txt, automagic.txt, setitems.txt, sets.txt, uniqueitems.txt, runes.txt, gems.txt, propertygroups.txt and others)
Sources
Built by hand from:
properties.txt(cols:code- property code,func<X>- how the stat is used,stat<X>- corresponding stat fromitemstatcost.txt)itemstatcost.txt(cols:Stat- stat code (matched withstat<X>fromproperties.txt),descstrpos,descstrneg- keys for string labels)data\local\lng\strings(string table labels for property text)
Labels are slightly modified to display value ranges and to include links.
Usage
{{Property|<property key>|[param]|[min value]|[max value]}}
To use, simply copy the property 4-tuple from the data file and replace tabs with |.
Examples
No param, min and max values equal:
{{Property|ac||60|60}} → +60 Defense
No param, min and max values not equal:
{{Property|abs-fire||5|11}} → +(5-11) Fire Absorb
Param, min value, max value (latter two re-used for a different purpose):
{{Property|Gethit-skill|235|1|25}} → Gethit-skill, 235, 1, 25
No param, min and max value ignored:
{{Property|indestruct||1|1}} → Indestructible
As above, just with no min and max values:
{{Property|indestruct|||}} → Indestructible
Different positive/negative labels, both positive:
{{Property|regen||1|2}} → Replenish Life +(1-2)
Different positive/negative labels, both negative:
{{Property|regen||-2|-1}} → Drain Life -(1-2)
Different positive/negative labels, mixed:
{{Property|regen||-1|2}} → Replenish/Drain Life ((-1)-(+2))
Property with single value or range - single value:
{{Property|hp/lvl|10||}} → +1.25*clvl to Life
As above, range:
{{Property|hp/lvl||8|12}} → +(1-1.5)*clvl to Life
Calculated value - param:
{{Property|ac/lvl|30||}} → +3.75*clvl Defense
Calculated value - min and max values:
{{Property|hp/lvl||8|12}} → +(1-1.5)*clvl to Life