Special ability durations
Im wondering if there is a way to modify the duration times of special ship abilities such as teleport disable in the mod files?
Aaron
Stardock will be closed for the week starting on Monday, June 29th and we will be returning on Monday, July 6th. We will be monitoring support tickets and forums during this time but expect delays in responses during this time.
Im wondering if there is a way to modify the duration times of special ship abilities such as teleport disable in the mod files?
Aaron
Yep. Each ability consists of 2 files, Abilityxxxxx.entity and Buffxxxxx.entity. Usually these are named the same (AbilityGaussBlast and BuffGaussBlast for the Kol's gauss shot, for example) but not always. The ability file calls the buff file, and the duration is defined as a finish condition in the buff file as "TimeElapsed".
So, TeleportDisable is a little trickier, but let's see.
In AbilityTeleportDisable:
buffType "BuffTeleportDisableCaster"
So we go to BuffTeleportDisableCaster:
numFinishConditions 1
finishCondition
finishConditionType "TimeElapsed"
time
Level:0 30.000000
Level:1 0.000000
Level:2 0.000000
So it lasts for 30 seconds. You'll notice there's also a BuffTeleportDisableTarget, which has:
numFinishConditions 1
finishCondition
finishConditionType "FirstSpawnerNoLongerHasBuff"
buffTypeToQuery "BuffTeleportDisableCaster"
Which means it ends when the caster's buff ends. So, you don't need to mess with this one, and just change the TimeElapsed value in BuffTeleportDisableCaster ![]()
Thanks! I'll give it a shot!
Welcome Guest! Please take the time to register with us.