Hi fellows,
I need help once again. My current 'quest' is to create a trigger with following consequences:
If no unit/structure is nearby a certain unit (multiple), the units will change the player to neutral.
I'm ashamed I have to ask things like that, yet my knowledge till now is mainly data-editor based and I'm still very confused with some aspects of the trigger-editor. So if you could help me out, that'd be great ;)
Regards
I know it's trigger forum and stuff, but you said your knowledge is mainly data-editor based. I don't know how advanced you are, but the thing you want is doable in data editor. I'll attach a map if you want to take a look, but most basic stuff you'd need is:
Behavior - Buff with period, and periodic event being:
Search Area - looking for targets to change owner (validator to validate if player race != neutral). If targets are found then:
Apply Behavior - Affected unit = Caster, with Behavior:
Behavior - Buff, with modified Behavior - Player - Value to Target.
In this implementation behavior modifying owner should last a bit longer than period for the one firing search area.
In my example tho there is few differences, which prevents building from changing owner if it's already claimed. Those are:
Behavior - Buff which changes owner of building duration is infinite duration, and also disables the search behavior.
Search Area - instead of applying behavior it creates persistent.
Create Persistent - Target being Target Unit, in Effects flagged for Persist until destroyed, Intial effect being apply behavior, effect - final being remove behavior (the one changing owner), period of any duration, periodic validator set to compare range beetwen caster and target (it should also check if target is not dead but I didn't do it).
Wow, thanks for the help both of you, you helped very much. I could not answer the last days cause I was rather busy with work.
@uiasdnmb: Yes, my knowledge is mainly data-editor based... I proudly claim I know certainly about 5% about this hellish tool^^
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
Hi fellows, I need help once again. My current 'quest' is to create a trigger with following consequences:
If no unit/structure is nearby a certain unit (multiple), the units will change the player to neutral.
I'm ashamed I have to ask things like that, yet my knowledge till now is mainly data-editor based and I'm still very confused with some aspects of the trigger-editor. So if you could help me out, that'd be great ;) Regards
Anarcy
I'd do it with a loop like this:
PlayerChangeGroup is a unit group with all the units inside which are supposed to change their owner.
I know it's trigger forum and stuff, but you said your knowledge is mainly data-editor based. I don't know how advanced you are, but the thing you want is doable in data editor. I'll attach a map if you want to take a look, but most basic stuff you'd need is:
In this implementation behavior modifying owner should last a bit longer than period for the one firing search area. In my example tho there is few differences, which prevents building from changing owner if it's already claimed. Those are:
TLDR: if You are bored do this in data editor.
Wow, thanks for the help both of you, you helped very much. I could not answer the last days cause I was rather busy with work. @uiasdnmb: Yes, my knowledge is mainly data-editor based... I proudly claim I know certainly about 5% about this hellish tool^^