Hi there,

I'm trying to create an ability that hits multiple random enemies. The effect I'm desiring is simply clicking on an ability and it autocasts on some of the enemy combatants (at random).

I've thought of a few ways of achieving this.
1.) http://puu.sh/oZfII/197ee219d4.png - The idea here would be to have the ability hit 100% of the time but only apply a status effect based on a hit % (lets use 50% for now). That would mean that some of the group is hit and some missed for a sufficiently large group. But the problem with this method would mean that I cannot set a number of targets to hit (ie. I want to hit exactly 2 targets).

2.) http://puu.sh/oZfTM/e2008cde61.png - I would set up some kind of single target ability that would auto target based on some requirement (I don't think it matters what) and then somehow set something so that requirement is not met. Then fire the ability the number of times I want. Obviously the problem is that I have to figure out how to fire the ability multiple times but count it as one action/step in my combatants queue and also maintain an extra variable for nothing other than this ability (and another for every ability that works like this).

3.) http://puu.sh/oZgfI/33a0382418.png - I think this is the best way but I have no idea how it works when used, but it should allow me to click the ability and have it "go off". I would need to figure out a way to have it target combatants without actually targeting (maybe that's automatic?) and then target a specific number of targets.
  • Option 3 is the way to go - using the None target range (without raycasting) will fire the ability and you'll be able to handle the rest in the battle event.
    E.g. using a Search Combatants step to find/store combatants as found objects and the Use Other Targets option in the Calculate step to use them for the ability calculations.
    Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found.
    If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
Sign In or Register to comment.