Hey!
I'd like to create a skill with three diffferent effects, elements and animations from which it randomly choses one. So basically all the skill has to do is triggering one of three other premade skills. It's a bit like Metronome from Pokémon, but with only three possible outcomes.
Example:
I use Metronome on a single target. It gets either hit by:
Fire Ball, element fire, may inflict burn
Ice Beam, element ice, may inflict freeze
Light Ray, element light, may inflict blindness
Each one has a 33% chance.
I use a few skill related plugins including Yanflys Skill Core, Weapon Unleash and the Action Sequence Packs, as well as Irinas Extension to them. I'm also aware that SumRndmDde made a Metronome-Plugin, but I would rather not add new Plugins to my project at this points.
I am pretty unexperienced when it comes to JS, so I first tried to pull this off without coding, but the only idea I had was the following: Metronome inflicts a state on the user, which via Weapon Unleash changes the Basic Attack to one of these three skills with 33% chance. Than there is a condition in every troop event which triggers, when the actor has this state and forces them to use basic attack on the last target. However this seems rather clunky to me and I did not try it yet, so any other ideas are welcome!
Thanks in advance!
I'd like to create a skill with three diffferent effects, elements and animations from which it randomly choses one. So basically all the skill has to do is triggering one of three other premade skills. It's a bit like Metronome from Pokémon, but with only three possible outcomes.
Example:
I use Metronome on a single target. It gets either hit by:
Fire Ball, element fire, may inflict burn
Ice Beam, element ice, may inflict freeze
Light Ray, element light, may inflict blindness
Each one has a 33% chance.
I use a few skill related plugins including Yanflys Skill Core, Weapon Unleash and the Action Sequence Packs, as well as Irinas Extension to them. I'm also aware that SumRndmDde made a Metronome-Plugin, but I would rather not add new Plugins to my project at this points.
I am pretty unexperienced when it comes to JS, so I first tried to pull this off without coding, but the only idea I had was the following: Metronome inflicts a state on the user, which via Weapon Unleash changes the Basic Attack to one of these three skills with 33% chance. Than there is a condition in every troop event which triggers, when the actor has this state and forces them to use basic attack on the last target. However this seems rather clunky to me and I did not try it yet, so any other ideas are welcome!
Thanks in advance!