Hello!
I have made a spell which applies an effect to a unit, creates a beam between the unit and the caster and orders the unit to follow the caster. Now I would like other spells (for instance, Stimpack) by the caster to affect his "bound" followers as well. How can I do that? Is there a way to create a link between two units that I can check via validators, or something similar? Help please! :x
There are a few ways to do this, validators might be very possible (however I haven't touched them to much just yet.) what I would do is this, when a "slave" is made, it gets a buff from its "master" when the master uses stimpack, stimpack will do a search for everyone with that buff, and apply stimpack to those units.
Rollback Post to RevisionRollBack
Random Information
Tutorials - Map Development - Galaxy wiki
|Issues? PM me|
You might want to look into the "Conjoined" behavior. It is what they use on the Train Robbery Tychus mission. Not sure if it will do what you are trying to do but its a good starting point. Another approach may be to make your beam order the unit to do the same thing that the parent unit does?
A less optimal way would be through triggers, but based off what you have posted above im sure you opted out of that. You can do something like this I suppose:
The thing is that the ability is used by the units of four players. So there's multiple players running around with slave units "bound" to them. I could very well search for every unit with the "enslaved" buff in order to check for that connection, but I believe that would also select units who follow other players. That is the issue that is currently presented to me; I need a way to check what unit EXACTLY the slave follows. :x
WOW do i ever wish you would share with me how you got that beam to work. I have a character with 2 pets, that are 2 different units, both are mules but its 2 diff units. They are conjoined and share theur health respectively however I would really like to put a beam connecting them example A === beam === B and and b respectively being the 2 different units that are conjoined @ividyon: Go
Hello! I have made a spell which applies an effect to a unit, creates a beam between the unit and the caster and orders the unit to follow the caster. Now I would like other spells (for instance, Stimpack) by the caster to affect his "bound" followers as well. How can I do that? Is there a way to create a link between two units that I can check via validators, or something similar? Help please! :x
@ividyon: Go
There are a few ways to do this, validators might be very possible (however I haven't touched them to much just yet.) what I would do is this, when a "slave" is made, it gets a buff from its "master" when the master uses stimpack, stimpack will do a search for everyone with that buff, and apply stimpack to those units.
You might want to look into the "Conjoined" behavior. It is what they use on the Train Robbery Tychus mission. Not sure if it will do what you are trying to do but its a good starting point. Another approach may be to make your beam order the unit to do the same thing that the parent unit does?
A less optimal way would be through triggers, but based off what you have posted above im sure you opted out of that. You can do something like this I suppose:
The thing is that the ability is used by the units of four players. So there's multiple players running around with slave units "bound" to them. I could very well search for every unit with the "enslaved" buff in order to check for that connection, but I believe that would also select units who follow other players. That is the issue that is currently presented to me; I need a way to check what unit EXACTLY the slave follows. :x
Nope just set the search flags to only search for player which does not include allies.
WOW do i ever wish you would share with me how you got that beam to work. I have a character with 2 pets, that are 2 different units, both are mules but its 2 diff units. They are conjoined and share theur health respectively however I would really like to put a beam connecting them example A === beam === B and and b respectively being the 2 different units that are conjoined @ividyon: Go