Is it possible to give a titan culture spread?

Nevermind, i found a way to do it. used "ApplyBufftoLocalOrbitalBody" to make it spread culture in a roundabout way.

23,780 views 10 replies
Reply #1 Top

Yep.  In an as-of-yet unreleased mod, I've done it in the same way.

Reply #2 Top

then i have a question for you!

what is your finishing condition?? because mine is a passive effect, so when it leave the gravity well the buff is still being applied! and i dont want that! i want it to travel WITH the titan. as soon as it leaves, the planet loses the buff. how do i do that without using a timelapsed?

Reply #3 Top

Quoting leo81792, reply 2
what is your finishing condition?? because mine is a passive effect, so when it leave the gravity well the buff is still being applied! and i dont want that! i want it to travel WITH the titan. as soon as it leaves, the planet loses the buff. how do i do that without using a timelapsed?

You give the titan an apply buff to self. That buff then applies your culture buff using "ApplyBuffToOrbitBody", and has a finish condition of Enter Hyperspace. On the culture buff, use the "LastSpawnerNoLongerHasBuff" finish condition referencing the first buff (look at passive AoE abilities like targetting uplink to see it in action, just ignore the out of range part).

Reply #4 Top

i did exactly that, but when i do it no longer applies the culture buff.... it only works if i put the applybuffto orbitbody in the ability file, not  a buff file. ugh!

Reply #5 Top

nevermind!!!! i fixed it!! i used an "    instantActionTriggerType "OnHyperspaceExit"" instead of AlwaysPerform and it worked!!! i'm so happy! lol

Reply #6 Top

Quoting leo81792, reply 5
instantActionTriggerType "OnHyperspaceExit"" instead of AlwaysPerform and it worked!!! i'm so happy! lol

FYI that is because AlwaysPerform can not be used on InstantActions in a buff file. They are fine in Ability files and for periodic actions, but InstantActions in buffs are a no go for some reason. Use OnDelay instead in most cases, though for you wanted Hyperspace Exit is needed.

Reply #7 Top

Make sure "OwnerChanged" is a finish condition for the self buff (this also will be tripped if the titan is destroyed) in case you haven't already...

Reply #8 Top

Quoting Seleuceia, reply 7
Make sure "OwnerChanged" is a finish condition for the self buff (this also will be tripped if the titan is destroyed) in case you haven't already...

Um, if the entity the buff is on is destroyed, the buff goes away no matter what. You don't need owner changed, though it is a good thing to put on most buffs, its not really necessary for titans.

Reply #9 Top

Quoting GoaFan77, reply 8
Um, if the entity the buff is on is destroyed, the buff goes away no matter what.

I was under the impression you got memory leaks unless you specifically ended a buff via finish conditions...perhaps I'm wrong but for a periodic action I thought this was so...

I know this sounds dumb (you'd think if the thing is dead, shouldn't the buff be over?) but I could of sworn I saw that described somewhere, even if an entity was destroyed periodic buffs could take up memory...

Reply #10 Top

Quoting Seleuceia, reply 9
I know this sounds dumb (you'd think if the thing is dead, shouldn't the buff be over?) but I could of sworn I saw that described somewhere, even if an entity was destroyed periodic buffs could take up memory...

Well I have to double check, but I think I have buffs that have finishing conditions that use "First/LastSpawnerNoLongerHasBuff" to buffs that have no finishing conditions. Naturally I only want these to end on the target death, and I think they work as intended. Granted I suppose the buff could still exist in dead virtual space somewhere if the check was just on the target, not the buff, but that would be an odd way to do it. ;P