Buff Help

Hello everyone,

 

Have a question regarding buffs.  More specifically, the Self Destruct buff that is on the TEC starbase.  I am tying to make a modified version of it that simulates a blast wave (i.e. damage buffs are applied at expanding ranges, at different times).  My order off buffs are:

Make Dead - delay time about 2-3 seconds

Damage 1 - delay time about 8 seconds / range 4000

Damage 2 - delay time about 10 seconds / range 8000

Damage 3 - delay time about 12 seconds / range 12000

 

My issue is that when the starbase "dies" the buff also seems to die along with it, so none of the damage buffs get applied.  I am using 1 finish condition, the "AllOnDelayInstantActionsDone" which I figured would work.  But I guess what I am seeing here is that a buff spawned from a starbase (or any entity) is "killed" when the starbase (or entity) dies. 

 

Has anyone else tried something similar to this and either got the same result, or got it to work properly?  The vanilla self destruct buff has the "make dead" and "damage" buffs occurring at the same time, so that's probably how the devs got that to work.

5,511 views 3 replies
Reply #1 Top

Might need to fire off all the buffs at the same time and just have the apply damage delayed.

I have an example of what I mean now.

 

instantAction
    buffInstantActionType "DoDamage"
    instantActionTriggerType "OnDelay"
    delayTime 0.000000
    damage

Change the delay time and you should be good to go, just have all the buffs fire at the same time and then after the delay all ships in range will take the damage applied. This may result in ships flying out of range but still taking damage because they were in range when the buff was fired.

Reply #2 Top

When an entity dies, all the buffs on the entity die as well. WOE's solution would work.

Reply #3 Top

Quoting Lavo_2, reply 2

When an entity dies, all the buffs on the entity die as well. WOE's solution would work.
End of Lavo_2's quote

 

That is what I was afraid of... Thanks WOE, ill try and make that solution work!