I am setting up my own spell database that integrates to the shaped script at the moment and when I attempt to add Chaos bolt to the database I can not get the higher level damage dice to add only for the secondary damage. I can add in the higher damage dice per level in the sheet itself after successfully importing the spell. But I was wondering if it was possible do that without having to muck about in the sheet itself. If that doesn't make any sense let me know. EDIT: Also even though in the code that is below I specified ranged as the attack type for some reason it is importing as a melee attack any advice on that is appreciated.
{"name":"Chaos Bolt","description":"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 + 1d6 damage. Choose one of the d8s. The number rolled on that die determines the attack's damage type, as shown below.\nD8 damage type\n1 Acid\n2 Cold\n3 Fire\n4 Force\n5 Lightning\n6 Poison\n7 Psychic\n8 Thunder\nIf you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\n A creature can be targeted only once by each casting of this spell.","higherLevel":"When you cast this spell using a spell slot of 2nd level or higher, each target takes 1d6 extra damage of the type rolled for each slot level above 1st.","emote":"hurls a bolt of elemental chaos at the target","source":"xge pc 151","range":"120 feet","components":{"verbal":true,"somatic":true},"duration":"Instantaneous","castingTime":"1 action","level":1,"school":"Evocation","attack":{"type":"ranged","damage":"2d8","secondaryDamage":"1d6","damageType":"acid, cold, fire, force, lightning, poison, psychic, thunder","higherLevelDice":1},"classes":["Sorcerer"]}
{"name":"Chaos Bolt","description":"You hurl an undulating, warbling mass of chaotic energy at one creature in range. Make a ranged spell attack against the target. On a hit, the target takes 2d8 + 1d6 damage. Choose one of the d8s. The number rolled on that die determines the attack's damage type, as shown below.\nD8 damage type\n1 Acid\n2 Cold\n3 Fire\n4 Force\n5 Lightning\n6 Poison\n7 Psychic\n8 Thunder\nIf you roll the same number on both d8s, the chaotic energy leaps from the target to a different creature of your choice within 30 feet of it. Make a new attack roll against the new target, and make a new damage roll, which could cause the chaotic energy to leap again.\n A creature can be targeted only once by each casting of this spell.","higherLevel":"When you cast this spell using a spell slot of 2nd level or higher, each target takes 1d6 extra damage of the type rolled for each slot level above 1st.","emote":"hurls a bolt of elemental chaos at the target","source":"xge pc 151","range":"120 feet","components":{"verbal":true,"somatic":true},"duration":"Instantaneous","castingTime":"1 action","level":1,"school":"Evocation","attack":{"type":"ranged","damage":"2d8","secondaryDamage":"1d6","damageType":"acid, cold, fire, force, lightning, poison, psychic, thunder","higherLevelDice":1},"classes":["Sorcerer"]}