I have had stuff like that happen to me - very frustrating.
Printable View
Is there a way to ignore targets? There are actions, like spell drain that do not care about targets, and so should only show once.
I can think of a couple of ways to do it, but thought I would ask if there was a way that already exists.
Im not sure what you mean?
Dont include targeting actions in your roll.
Or are you wanting to drop a target based on some condition?
I want to exclude all targeting in some rolls. I'm guessing there is something somewhere that excludes targeting that I'm not aware of.
Its still unclear what you mean.
Most rolls ignore targeting.
Ah, then there is most definitely something I am missing because it seems all of the rolls I've seen so far seem to use targeting.
The code I have is using ActionManager.performAction(draginfo, rActor, rRoll) and they seem to give me multiple results when I have 2 or more targets selected.
I still dont understand what you are trying to do?
If the player has multiple targets selected there is a reason for that.
If they shouldnt be targeted then the player should fix that?
have a look at manager_custom_ubiquity.lua as an example.
function onLanded(rSource, rTarget, rRoll)
is present but the rTarget data is not used.
Well, in this case, or at least with shadowrun a player may target multiple targets to do an attack with an area affect spell, say fireball.
They cast that spell and roll 1 set of dice for all targets. Each target then resists the damage from the spell.
The character then has to resist drain from the casting of the spell. I was thinking I could have them do this without having to clear targets.
There are no current examples of this behavior in MoreCore at this time sorry.
There are lots of ways you could approach this but nothing that exists in MoreCore to work from.
No worries, thanks for your help.