This is a javascript test to parse an item described in a single line.
We can use it to validate weapon stats before entering them in the inventory.
Consider swing to be 1d-1 and thrust to be 1d+1.
Click the following examples to see the parser in action:
- Goat's Foot, tl 3, weight 2, shots (20), cost 50, st 7†
- Wooden Stake, dmg thr(0.5) imp, reach c, parry -1, cost 4, weight 0.5, st 5
- Maul, tl 0, dmg sw+4 cr, reach 1,2*, parry 0u, cost 80, weight 12, st13‡
- Bastard Sword, tl 3, dmg sw+1 cut, reach 1,2, parry 0u, weight 5, st11, cost 600
- Monowire Whip, tl ^, dmg sw+1d-2(10) cut, reach 1-7*, parry -2u, weight 0.5, st 5, cost 900
- Bolas, tl 0, dmg thr-1 cr, acc 0, rng x3, weight 2, rof 1, shots t(1), cost $20, st 7, bulk -2
- Longbow,tl0,dmgthr+2imp,acc2,rngx15/x20,weight3/0.1,rof1,shots1(2),cost200,st11†,bulk-8
- Crossbow, tl 2, dmg thr+4 imp, acc 4, rng x20/x25, weight 6/0.06, rof 1, shots 1(4), st 7†, bulk -6, cost 150
- Black Powder Grenade, tl 5, dmg 3d cr ex [1d], fuse 3-5, weight 1, cost 5, lc 2
- Framentation Grenade, tl 6, dmg 4d cr ex [2d], fuse 4, weight 1, cost 10, lc 2
- Plasma Grenade, tl ^, dmg 6dx4 burn ex, weight 1, fuse 2, cost 100, lc 1
- Sniper Rifle, .338, tl8, dmg9d+1pi, acc6+3,rng1500/5500,weight17.5/0.8,rof1,shots4+1(3),st11b†,bulk-6,rcl4,cost5600,lc3
- Auto Pistol, 9mm, tl 6, dmg 2d+2 pi, acc 2, rng 150/1850, weight 2.4/0.4, rof 3, shots 8+1(3), st 9, bulk -2, rcl 2, cost 350, lc 3
- SAM, 70mm, tl 6, dmg 6dx3 cr ex[6d], acc 7, rng 1000/8800, weight 18/22, rof 1, shots 1(20), st 10†, bulk -8, rcl 1, lc 1, cost $38000
- Flamethrower, tl 6, dmg 3d burn, rng 50, weight 70, rof jet, shots 10, st 10†, bulk -8, cost 1800, lc 1
The stats are basically what you see on Basic Set, but you'll have to put their names before each value, as seen above.