User:Artoire/Sandbox/2: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
<onlyinclude><includeonly>{{#invoke:Sandbox/User:Artoire/1|main}}</includeonly></onlyinclude><!-- |
|||
⚫ | |||
-->Blacksmithing calculator. |
|||
Includes the xp gained from smelting the ore, unlike [[Blacksmith#Active activities]]. |
|||
In the xp fields, if you enter 0-500, that is assumed to be a level instead of xp. |
|||
==Calculator== |
|||
{{Form calculator |
|||
⚫ | |||
|template = User:Artoire/Sandbox/2 |
|||
|form = BlacksmithForm |
|||
|result = BlacksmithResult |
|||
|outputtype = basic |
|||
|field1 = {{Form calculator field |
|||
|param = current_xp |
|||
|label = Current XP |
|||
|default = 20 |
|||
|type = int |
|||
|range = 0-{{XP/At level|500}} |
|||
}} |
|||
|field2 = {{Form calculator field |
|||
|param = target_xp |
|||
|label = Turrent XP |
|||
|default = 30 |
|||
|type = int |
|||
|range = 0-{{XP/At level|500}} |
|||
}} |
|||
|field3 = {{Form calculator field |
|||
|param = ingot |
|||
|label = Ingot |
|||
|default = Laterite Iron Ingot |
|||
|type = select |
|||
|range = {{#invoke:Sandbox/User:Artoire/1|ingots}} |
|||
}} |
|||
|field4 = {{Form calculator field |
|||
|param = pole_buy |
|||
|label = Buying timber? |
|||
|default = poles |
|||
|type = buttonselect |
|||
|range = none,logs,poles |
|||
}} |
|||
}} |
|||
==Test== |
|||
{{User:Artoire/Sandbox/2|current_xp=24|target_xp=37|ingot=Maloic Adathril Ingot|pole_buy=none}} |
|||
{{User:Artoire/Sandbox/2|current_xp=267|target_xp=294|ingot=Eysite Flantium Ingot|pole_buy=poles}} |
|||
{{User:Artoire/Sandbox/2|current_xp=193|target_xp=220|ingot=Magnetite Iron Ore|pole_buy=poles}} |
Revision as of 14:52, 19 December 2024
Blacksmithing calculator.
Includes the xp gained from smelting the ore, unlike Blacksmith#Active activities.
In the xp fields, if you enter 0-500, that is assumed to be a level instead of xp.
Calculator
template = User:Artoire/Sandbox/2 form = BlacksmithForm result = BlacksmithResult param = current_xp|Current XP|20|int|0-Template:XP/At level|| param = target_xp|Turrent XP|30|int|0-Template:XP/At level|| param = ingot|Ingot|Laterite Iron Ingot|select|Lua error in Module:Sandbox/User:Artoire/1 at line 26: table index is nil.|| param = pole_buy|Buying timber?|poles|buttonselect|none,logs,poles||
Test
Lua error in Module:Sandbox/User:Artoire/1 at line 26: table index is nil.
Lua error in Module:Sandbox/User:Artoire/1 at line 26: table index is nil.
Lua error in Module:Sandbox/User:Artoire/1 at line 26: table index is nil.