Ability Help.

I am trying to add an ability to the psi's extractors that lets them sacrifice hull points in return for increased output... Too easy, I thought, but I don't know what to put on the buff that lets it increase in extraction rate.

I have tried the research's entity modifier,


numEntityModifiers 1
entityModifier
 buffEntityModifierType "ExtractionRateMetalAdjustment"
 baseValue 0.000000
 perLevelValue 0.300000

But it gives me the "Cant Convert 'ExtractionRateMetalAdjustment' to an enum value".

Any suggestions?

Also, is there a list of buff types so I know what I can or cannot do with an ability buff?

Much thanks.

3,522 views 3 replies
Reply #1 Top

Here's a list of of the buff types, constraints, modifiers, etc.  I'd say it's about 90-95% complete but is missing some of the newer lines from entrenchment/diplomacy. 

https://forums.sinsofasolarempire.com/306405

As far as your buff, ExtractionRateMetalAdjustment is a research modifier, so you'll want to find a different line to use in a buff.  I suggest taking a look at the Psi Tradeport entity and associated ability/buff files for AbilityBoostResourceExtraction.  It uses the IsResourceFocusActive line under Entity Bool Modifiers.  I've never played around with this type of thing, so I'm not sure exactly what that does other than increase resource production.  Give it a look-see though, and I bet you can find a way of combining that and a gradual or instant HP loss.

 

 

Reply #2 Top

Here is a list with all the "buff types" or enum values in buffs as they are called by the game: https://forums.sinsofasolarempire.com/366795

The research modifier can't be used in buffs only research. The only thing I can think of is one of the buff over time which makes resources, but you can't make it only make metal or crystal.