<Pre-Damage Eval>
$gameVariables.setValue(21, Math.randomInt(4) + 1)
</Pre-Damage Eval>
<whole action>
if $gameVariables.value(21) === 1
// Change to Fire element
force element: 2
animation 36: targets
else if $gameVariables.value(21) === 2
// Change to Water element
force element: 3
animation 34: targets
else if $gameVariables.value(21) === 3
// Change to Air element
force element: 4
animation 40: targets
else if $gameVariables.value(21) === 4
// Change to Earth element
force element: 5
animation 38: targets
end
action effect
clear element
wait for animation
</whole action>
<target action>
</target action>