Difference between revisions of "User:Trang Oul/Sandbox/Template:Property"
| Line 53: | Line 53: | ||
}} {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% | }} {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% | ||
| ac% = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% Enhanced Defense | | ac% = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% Enhanced Defense | ||
| − | | red-mag = | + | | red-mag = Magic Damage Reduced by {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}} |
| str = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Strength | | str = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Strength | ||
| dex = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Dexterity | | dex = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Dexterity | ||
| Line 62: | Line 62: | ||
| hp = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Life | | hp = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Life | ||
| hp% = Increase Maximum Life {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% | | hp% = Increase Maximum Life {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% | ||
| − | | att = | + | | att = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Attack Rating |
| − | | block = | + | | block = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% Increased Chance of Blocking |
| − | | cold-min = | + | | cold-min = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Minimum Cold Damage |
| − | | cold-max = | + | | cold-max = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Maximum Cold Damage |
| − | | cold-len = | + | | cold-len = ({{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|right=/25}} seconds) |
| − | | fire-min = | + | | fire-min = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Minimum Fire Damage |
| − | | fire-max = | + | | fire-max = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Maximum Fire Damage |
| − | | ltng-min = | + | | ltng-min = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Minimum Lightning Damage |
| − | | ltng-max = | + | | ltng-max = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Maximum Lightning Damage |
| − | | pois-min = | + | | pois-min = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Minimum Poison Damage |
| − | | pois-max = | + | | pois-max = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Maximum Poison Damage |
| − | | pois-len = | + | | pois-len = over {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|right=/25}} seconds |
| − | | dmg-min = | + | | dmg-min = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Minimum Damage |
| − | | dmg-max = | + | | dmg-max = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Maximum Damage |
| − | | dmg% = | + | | dmg% = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% Enhanced Damage |
| dmg-to-mana = | | dmg-to-mana = | ||
| res-fire = | | res-fire = | ||
Revision as of 09:41, 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