Attack with a Random Element that still gets displayed?

ok, sooo i´m toying around with a Gambler Class and try to make a "Dice" attack
this is a Custom Action sequence~

i Roll 3 dice

One for the Strength of the Attack
One for how often the attack will be repeated
aaaaand one (this is the problematic one) deciding its Element.

soooo I roll 3 Variables

the first one i added into the Dmg formular and just added the first Variable
for the second i made a loop that runs equal to the second variable and each round it goes -1
but i´m having troule with the thirrrrrd. I tried like "ELEM: Force Element" but if i add like \V[48] it just crashes with JSON errors
if i put Multi Element: v48 in the note, its just not happenin... sooo
I´m out of Ideas how to do this.

Ps: i have no idea how to code properly and just willy nilly it most of the time but most of the time it works
Also i´m dyslexic so you can keep typos to yourself, thanks.
did you try the script call for it instead for the formula/textbox shortcut? If its evaluating JS then it should accept it.
Code:
$gameVariables.value(48);
Don't know if it takes a variable. Try below or using plugin command in script form (edit: reading what Robro33 wrote again, I think it's what he suggested):

BattleManager._action._battleCoreForcedElements.push(elementId)
Nah, not workin eather...
I could go for a Branch for every dice roll of the 3rd Dice and place the Force Element there... but i hoped i could get around the hastle

Edit: Even tho it looks not as Fancy~ it works. Thanks for the help
Hmmm I tested it and it seemed to work for me, unless I'm missing something. But anyway, good that you got it working with conditionals.
Did you put a Variable into where the Element Id would be?
Yeah, like: BattleManager._action._battleCoreForcedElements.push($gameVariables.value(20))

Original thread: https://forums.rpgmakerweb.com/threads/attack-with-a-random-element-that-still-gets-displayed.181182/