Difference between revisions of "User:Trang Oul/Sandbox/Template:Property"
| Line 31: | Line 31: | ||
</noinclude><includeonly>{{#switch: {{{1|}}} | </noinclude><includeonly>{{#switch: {{{1|}}} | ||
| − | | ac | + | | ac = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} Defense |
| − | | ac-miss | + | | ac-miss = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} Defense vs. Missile |
| − | | ac-hth | + | | ac-hth = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} Defense vs. Melee |
| − | | abs-fire% | + | | str = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} to Strength |
| − | | abs-fire | + | | dex = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} to Dexterity |
| − | | abs-ltng% | + | | vit = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} to Vitality |
| − | | abs-ltng | + | | enr = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} to Energy |
| − | | abs-mag% | + | | mana = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} to Mana |
| − | | abs-mag | + | | mana% = Increase Maximum Mana {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}}}% |
| − | | abs-cold% | + | | hp = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} to Life |
| − | | abs-cold | + | | hp% = Increase Maximum Life {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}}}% |
| − | | indestruct | + | | abs-fire% = Fire Absorb {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}}% |
| − | | att-skill | + | | abs-fire = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} Fire Absorb |
| − | | hit-skill | + | | abs-ltng% = Lightning Absorb {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}}% |
| − | | gethit-skill | + | | abs-ltng = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} Lightning Absorb |
| − | | Gethit-skill | + | | abs-mag% = Magic Absorb {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}}% |
| − | | kill-skill | + | | abs-mag = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} Magic Absorb |
| − | | death-skill | + | | abs-cold% = Cold Absorb {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}}% |
| − | | levelup-skill | + | | abs-cold = {{User:Trang Oul/Sandbox/Template:Range|{{{3|}}}|{{{4|}}}|signed=1}} Cold Absorb |
| − | | noheal | + | | indestruct = Indestructible |
| − | | half-freeze | + | | att-skill = {{{3|}}}% [[Chance to cast]] level {{{4|}}} {{User:Trang Oul/Sandbox/Template:Skill name|{{{2|}}}}} [[on attack]] |
| − | | nofreeze | + | | hit-skill = {{{3|}}}% [[Chance to cast]] level {{{4|}}} {{User:Trang Oul/Sandbox/Template:Skill name|{{{2|}}}}} [[on striking]] |
| − | | knock | + | | gethit-skill = {{{3|}}}% [[Chance to cast]] level {{{4|}}} {{User:Trang Oul/Sandbox/Template:Skill name|{{{2|}}}}} [[when struck]] |
| + | | Gethit-skill = {{{3|}}}% [[Chance to cast]] level {{{4|}}} {{User:Trang Oul/Sandbox/Template:Skill name|{{{2|}}}}} [[when struck]] | ||
| + | | kill-skill = {{{3|}}}% [[Chance to cast]] level {{{4|}}} {{User:Trang Oul/Sandbox/Template:Skill name|{{{2|}}}}} [[when you Kill an Enemy]] | ||
| + | | death-skill = {{{3|}}}% [[Chance to cast]] level {{{4|}}} {{User:Trang Oul/Sandbox/Template:Skill name|{{{2|}}}}} [[when you Die]] | ||
| + | | levelup-skill = {{{3|}}}% [[Chance to cast]] level {{{4|}}} {{User:Trang Oul/Sandbox/Template:Skill name|{{{2|}}}}} [[when you Level-Up]] | ||
| + | | noheal = [[Prevent Monster Heal]] | ||
| + | | half-freeze = [[Half Freeze Duration]] | ||
| + | | nofreeze = [[Cannot Be Frozen]] | ||
| + | | knock = [[Knockback]] | ||
}}</includeonly> | }}</includeonly> | ||
Revision as of 22:21, 2 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
{{Item 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 Fire Absorb
Param, min value, max value (latter two re-used for a different purpose):
{{Property|Gethit-skill|235|1|25}} → 1% Chance to cast level 25 Cyclone Armor when struck
No param, min and max value ignored:
{{Property|indestruct||1|1}} → Indestructible
As above, just with no min and max values:
{{Property|indestruct|||}} → Indestructible
Calculated value - param:
{{Property|ac/lvl|30||}} →
Calculated value - min and max values:
{{Property|hp/lvl||8|12}} →