Difference between revisions of "User:Trang Oul/Sandbox/Template:Property"

From Basin Wiki
Jump to navigation Jump to search
Line 295: Line 295:
 
| ac-mon                =
 
| ac-mon                =
 
| ac%-mon                =
 
| ac%-mon                =
−
| indestruct            = Indestructible
+
| indestruct            = [[Indestructible]]
−
| charged                =
+
| charged                =  
 
| extra-fire            = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% to [[Fire Skill Damage]]
 
| extra-fire            = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% to [[Fire Skill Damage]]
 
| extra-ltng            = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% to [[Lightning Skill Damage]]
 
| extra-ltng            = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% to [[Lightning Skill Damage]]
Line 305: Line 305:
 
| dmg-elem-max          =
 
| dmg-elem-max          =
 
| all-stats              =
 
| all-stats              =
−
| addxp                  =
+
| addxp                  = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% to [[Experience Gained]]
 
| heal-kill              = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} Life after each Kill
 
| heal-kill              = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} Life after each Kill
−
| cheap                  =
+
| cheap                  = Reduces all Vendor Prices {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}%
−
| rip                    =
+
| rip                    = [[Slain Monsters Rest in Peace]]
 
| att-mon%              =
 
| att-mon%              =
 
| dmg-mon%              =
 
| dmg-mon%              =
Line 318: Line 318:
 
| levelreq              =
 
| levelreq              =
 
| ethereal              =
 
| ethereal              =
−
| oskill                =
+
| oskill                = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to {{User:Trang Oul/Sandbox/Template:Skill name|{{{2|}}}}}
 
| state                  =
 
| state                  =
 
| randclassskill        =
 
| randclassskill        =
−
| noconsume              =
+
| noconsume              = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% Chance to not consume Quantity
−
| pierce-immunity-cold  =
+
| pierce-immunity-cold  = Monster Cold Immunity is Sundered (-{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}%)
−
| pierce-immunity-fire  =
+
| pierce-immunity-fire  = Monster Fire Immunity is Sundered (-{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}%)
−
| pierce-immunity-light  =
+
| pierce-immunity-light  = Monster Lightning Immunity is Sundered (-{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}%)
−
| pierce-immunity-poison =
+
| pierce-immunity-poison = Monster Poison Immunity is Sundered (-{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}%)
−
| pierce-immunity-damage =
+
| pierce-immunity-damage = Monster Physical Immunity is Sundered (-{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}%)
−
| pierce-immunity-magic  =
+
| pierce-immunity-magic  = Monster Magic Immunity is Sundered (-{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}%)
−
| charge-noconsume      =
+
| charge-noconsume      = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}}% chance for finishing moves to not consume charges
−
| war                    =
+
| war                    = {{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}|signed=1}} to Warlock Skill Levels
−
| dmg-mag/lvl            =
+
| dmg-mag/lvl            = {{User:Trang Oul/Sandbox/Template:Range|{{{2|}}}|{{{3|}}}|{{{4|}}}|right=/8|signed=1}}*clvl to Maximum Magic Damage
 
| pierce-mag            = -{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% to [[Enemy Magic Resistance]]
 
| pierce-mag            = -{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% to [[Enemy Magic Resistance]]
 
| pierce-dmg            = -{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% to [[Enemy Physical Damage Resistance]]
 
| pierce-dmg            = -{{User:Trang Oul/Sandbox/Template:Range||{{{3|}}}|{{{4|}}}}}% to [[Enemy Physical Damage Resistance]]

Revision as of 14:51, 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 from itemstatcost.txt)
  • itemstatcost.txt (cols: Stat - stat code (matched with stat<X> from properties.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