You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

32 lines
847 B

!scriptcard {{
--#title|Scavenge Gear
--:Initialize Roll Vars|
--&EqType|?{Equipment Type?|Bladed Weapon,Scavenge-Blade|Blunt Weapon,Scavenge-Blunt|Armour and Equipment,Scavenge-Other}
--=Quantity|?{Quantity?|1}
--=Roll|
--=RollCount|0
--?[&EqType] -eq Scavenge-Blade|>Blade;[$Quantity]
--?[&EqType] -eq Scavenge-Blunt|>Blunt;[$Quantity]
--?[&EqType] -eq Scavenge-Other|>Other;[$Quantity]
--:Loop|
--=RollCount|[$RollCount] + 1
-->RollTable|
--+[$RollCount]|[$Roll.tableEntryText]
--?[$RollCount] -lt [$Quantity]|Loop
--X| End macro
--:Blade| --+Bladed Weapon(s)|Rolling [%1%] times --<|
--:Blunt| --+Blunt Weapon(s)|Rolling [%1%] times --<|
--:Other| --+Armour/Other|Rolling [%1%] times --<|
--:FUNCTIONS|
--:RollTable|
--=Roll|[T#[&EqType]]
--<|
}}