Is it possible to have a skill do two different things simultaneously, such as damage one target while healing a random ally.
I'm looking for a skill to deal damage to the user and then heal that amount to another character. I'm not currently of any way to do this. Thank you for any input.
easiest way is damage code.
the damage formula of any skill is always eval'd and can contain any code of the language the maker is written in.
There is a stickied topic about how to use damage formula code here in the forum, please follow that.
(action sequences require plugins and are more complex, damage formula code is usually the better solution unless you want to combine animations and more with the effects themselves)
I figured it out partially with action sequences, though I could not find where in the damage code I could do different types of damage/healing to different targets selected differently in the damage code. I did go through a long list explaining a lot of parameters, but nothing that pertained to targeting random allies when attacking an enemy, nor any other targeting parallel.
I do have one follow up question which could be related to targeting multiple targets but state dependent:
I want to add a state to a secondary target and have that target specifically get attacked as well as the primary target so long as they have that state. I'm simply not familiar enough with scripting at this point to know how to properly set up an if statement to check all alive targets for a state, and then follow through with the attack if they do not have it, and this be done after the primary target has been attacked (who would not need the state).
Thank both of you for responding. I appreciate the effort and time =)
I'm not sure about how exactly to go about coding it, but the logic that follows:
Damage enemy
Check all for state, if enemy has state: carry out x, if ally has state: carry out y.
I feel like it's probably simple I just sadly don't know how to do it and haven't had much success with my attempts.