Yo, so I've got over my targetting system - it works perfectly.
Next up, I need a Buff that (i will apply through triggers), but it must change the 'classification' of an enemy unit. For example, it will make an enemy unit classified as Stasis : False. Therefore, my unit can attack. Because he is 'targetting' that unit. In default, my unit cannot attack Stasis units.
Any help?
None.
To ensure, you mean by class stuff like "armored, light, psionic..."? Will edit this post if I find it out
Or do you mean stuff like "Worker: false, no event on death: true" and the like?
I couldn't find anything, not in behaviors nor in the effects section, I guess it's impossible, though this doesn't mean anything
WAIT!
I found something interesting:
do it with triggers, search for an action called like "Set status of unit-filter", I guess you can make your way through it now.
Post has been edited 2 time(s), last time on Oct 20 2010, 10:54 pm by Billy.
None.
Just a quick question: I never understood what "Stasis" status is.
None.
Neither do I tbh, you cannot add custom classes and attributes as well, or am I wrong? If it's possible, please tell me how to
None.
Stasis is just a flag on the unit, like invulnerable and a bunch of other ones. Think stasis like the arbiter ability from SC1, you could not attack or use abilities on units that were under that effect.
Just like invulnerable flag it does not actually do anything on it's own though. Just like how if you remove the invulnerable filter from a weapon it can attack invulnerable All default weapons/abilities have a filter that stops them from being able to target units with this flag.
Removing stasis from a unit with a buff does not seem to be possible. My suggestion would be to not have the unit be permanently in stasis but to use a buff to put it in stasis. Then you can use a remove buff effect, or disable the buff through a validator.
None.
Hey - sort of forgot I posted this here... anyways..
Just for clarification - This is for a system in which a player can select a 'target', and by default, I want his unit to 'attack' the 'target'.
So, my initial way of thinking was to make all units 'Invulnerable' or 'In Stasis', and then change the units classification when the 'target' == that unit. So, it would create the illusion of your hero unit only attacking his current target. You can then use abilities and they would by default attack your target (if they are targetable).
I realise you cannot edit a units classification as such (Light, Armoured, Stasis, Psionic, Heroic etc)... You could do it through the Field_Set_CatalogueID function (its called something like that)...
So, my work-around had to eventually involve triggers and it just applies a buff to your target, and a debuff when you change targets.
None.