Okay - here is my still-in-progress but conceptually working set of stuff that I have done to more/less create a Ranged Weapon that can be upgraded with additional damage types/damages based on stuff - based (directly) off of the Arm-Cannon from Metroid, with everyone's help here, thank you
Attribute List:
prefix @{
--Charge--
ACCBT0:
ACCBT1: Charged,
ACCBT: @{prefix}@{character_name}|ACCBT@{repeating_resource_$1_resource_left}}
--Spazer--
ACSBT0:
ACSBT1: , Spazer
ACSBT: @{prefix}@{character_name}|ACSBT@{repeating_resource_$2_resource_left}}
--Ice--
ACIBT0:
ACIBT1: , Ice
ACIBT: @{prefix}@{character_name}|ACIBT@{repeating_resource_$3_resource_left}}
--Wave--
ACWBT0:
ACWBT1: , Electrical
ACWBT: @{prefix}@{character_name}|ACWBT@{repeating_resource_$4_resource_left}}
--Plasma--
ACPBT0:
ACPBT1: , Piercing
ACPBT: @{prefix}@{character_name}|ACPBT@{repeating_resource_$5_resource_left}}
(I know "Spazer" isn't a damage type, I don't really know what to do for that one honestly)
Character Ability Macro:
[Macro Name: AC]
&{template:atk} {{mod=+[[@{spell_attack_bonus}[SPELL] + [[2[Crafted]+@{repeating_resource_$0_resource_left}[Infused]]][MOD] + @{pb}[PROF]]]}} {{rname=[Arm-Cannon](~-1234567890_1234567|ACA)}} {{r1=[[@{my_char|d20}cs>20 + @{spell_attack_bonus}[SPELL] + [[2[Crafted]+@{repeating_resource_$0_resource_left}[Infused]]][MOD] + @{pb}[PROF]]]}} @{my_char|rtype}cs>20 + @{spell_attack_bonus}[SPELL] + [[2[Crafted]+@{repeating_resource_$0_resource_left}[Infused]]][MOD] + @{pb}[PROF]]]}} {{range=120ft}} {{desc=}}
[Macro Name: ACA]
&{template:dmg} {{attack=1}} {{dmg1flag=1}} {{dmg1=[[floor(((1d6 + %{my_char|IB} + %{my_char|WB} + %{my_char|PB}) + @{spell_attack_bonus}[SPELL] + [[2[Crafted]+@{repeating_resource_$0_resource_left}[Infused]]][MOD]) * %{my_char|SB} * %{my_char|CHB})]]}} {{dmg1type=@{ACCBT}Force@{ACSBT}@{ACIBT}@{ACWBT}@{ACPBT}}}
[Macros: CHB, SB, IB, WB, PB (each will be 1 space apart for ease of viewing)]
[[@{repeating_resource_$1_resource_left}[Charge]*2+1]]
[[@{repeating_resource_$2_resource_left}[Spazer]*0.5+1]]
[[@{repeating_resource_$3_resource_left}[Ice]*1d4]]
[[@{repeating_resource_$4_resource_left}[Wave]*1d4]]
[[@{repeating_resource_$5_resource_left}[Plasma]*1d8]]
This is pretty solid, and at least for me it seems to work very well. Might attempt adding stuff for Missile types next. That will be fun lol.
By all means as well, critique this and suggest ways that I can do this better - I'm all for learning different ways to approach these things