I'm working on a unit (a parasite) that can infect any other units. Doing so gives her the XP the unit it's attached to gets, and it makes her unkillable until the "host" is dead. Here is what I need:
How can I make, actor-wise, a model (larvae) attach itself like on the head of any other units it has infected ?
I understood that this unit would be a lot of triggers, with dummy abilities in data. What I thought are dummy abilities that would apply dummy behaviors on target unit (host for exemple), and that in trigger I could modify the caracteristics of the "receiver of the behavior" and of the "source of the behavior". Would you guys see another better way to do that ? Also, I couldn't find such a trigger that returns the 2 units when one of them receives a specific behavior.
does the larva need to be selectable? if not i would create a larva actor, Host+ and Sop fields determine where to attach it. add a behavior to the host unit , which acts as starting point for your larva actor to be created. create a trigger with event unit recieves xp, condition for larvabuff, remove xp from host and save xp in a variable (or give it to your unit instantly) and when the buff ends give the xp to your unit.
I love you, thank you !! :) You are correct, the larva doesn'T need to be selectable once it's on the host, so that should do.
Just a thing tho, I have this ability that is "infect host". So It's a target-unit ability, which applies a dummy buff on the "host" unit I want to be attached to. But how can I refer to the unit having this behavior ? There is no such trigger, there is only "Unit behavior change" trigger. How can I refer to my parasite once it has "infected" the host, because i need to hide him until he "comes back to larva" form.
Can't you just set the flag "Kills to caster" on the behavior. I THINK (don't really know if it's true) that the XP is given on kill and if the flag is on, it's supposed to give the kills to the caster (the larva on this example) and so it gets the XP. I repeat, I think.
Actors make launched parasite missile to towards "head" attachment point, or some safe fall-back for models without one.
Upon impact parasite model gets attached to target attachment. This might require a dummy non-unit actor.
Parasite unit is hidden/made uncontrollable and follows unit around. Being an item would be ideal however I do not think one can dynamically add containers in which case I would recommend triggers to move it every 1/16 seconds. Simple follow order with "too far" fallback might also work.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi everyone,
I'm working on a unit (a parasite) that can infect any other units. Doing so gives her the XP the unit it's attached to gets, and it makes her unkillable until the "host" is dead. Here is what I need:
How can I make, actor-wise, a model (larvae) attach itself like on the head of any other units it has infected ?
I understood that this unit would be a lot of triggers, with dummy abilities in data. What I thought are dummy abilities that would apply dummy behaviors on target unit (host for exemple), and that in trigger I could modify the caracteristics of the "receiver of the behavior" and of the "source of the behavior". Would you guys see another better way to do that ? Also, I couldn't find such a trigger that returns the 2 units when one of them receives a specific behavior.
Thank you again for your help SC2MApster
does the larva need to be selectable? if not i would create a larva actor, Host+ and Sop fields determine where to attach it. add a behavior to the host unit , which acts as starting point for your larva actor to be created. create a trigger with event unit recieves xp, condition for larvabuff, remove xp from host and save xp in a variable (or give it to your unit instantly) and when the buff ends give the xp to your unit.
@FunkyUserName: Go
I love you, thank you !! :) You are correct, the larva doesn'T need to be selectable once it's on the host, so that should do.
Just a thing tho, I have this ability that is "infect host". So It's a target-unit ability, which applies a dummy buff on the "host" unit I want to be attached to. But how can I refer to the unit having this behavior ? There is no such trigger, there is only "Unit behavior change" trigger. How can I refer to my parasite once it has "infected" the host, because i need to hide him until he "comes back to larva" form.
@FunkyUserName: Go
Can't you just set the flag "Kills to caster" on the behavior. I THINK (don't really know if it's true) that the XP is given on kill and if the flag is on, it's supposed to give the kills to the caster (the larva on this example) and so it gets the XP. I repeat, I think.
@TheSC2Maniac: Go
dunno, i have never used this.
@AirFlareSC2: Go
love? after such a short time? shouldn't we know each other better first?
use the "ability used" event and use caster and target unit for reference
I am guessing the process would involve this.