I think this may just be an issue of me not knowing the name of the function I want to call, BUT:
I would like to have skills that take the element of the weapon that is equipped by the user. I planned to do this by simply using a bunch of conditionals in the formula bar, but I realized I don't know any function (and have not found one) that adds an element rate in the formula bar. What I would like to do is something that would look like:
a.hasWeapons($dataWeapons[ExampleIceWeapon]) ? addElementRate(ice),a.atk*4 - b.def*2 : a.hasWeapons($dataWeapons[ExampleFireWeapon]) ? addElementRate(fire),a.atk*4 - b.def*2 : a.hasWeapons($dataWeapons[ExampleThunderWeapon]) ? addElementRate(thunder),a.atk*4 - b.def*2 : a.atk*4 - b.def*2
Is that the right approach? And if so how do you phrase the function that adds elements and how do the arguments look? Or is there a more straight forward approach that I have missed?
Thank you for your time and help!
I would like to have skills that take the element of the weapon that is equipped by the user. I planned to do this by simply using a bunch of conditionals in the formula bar, but I realized I don't know any function (and have not found one) that adds an element rate in the formula bar. What I would like to do is something that would look like:
a.hasWeapons($dataWeapons[ExampleIceWeapon]) ? addElementRate(ice),a.atk*4 - b.def*2 : a.hasWeapons($dataWeapons[ExampleFireWeapon]) ? addElementRate(fire),a.atk*4 - b.def*2 : a.hasWeapons($dataWeapons[ExampleThunderWeapon]) ? addElementRate(thunder),a.atk*4 - b.def*2 : a.atk*4 - b.def*2
Is that the right approach? And if so how do you phrase the function that adds elements and how do the arguments look? Or is there a more straight forward approach that I have missed?
Thank you for your time and help!