Finish conditions

Just wondering if there is a finish condition type that can depend on a certain amount of damage to the hull being done, rather then just hull damage for instance.

10,000 views 5 replies
Reply #1 Top

8(|

finishCondition
finishConditionType "FirstSpawnerNoLongerHasBuff"
buffTypeToQuery "BuffSomeBuff"

finishCondition
finishConditionType "LastSpawnerNoLongerHasBuff"
buffTypeToQuery "BuffSomeBuff"

finishCondition
finishConditionType "AllOnDelayInstantActionsDone"

finishCondition
finishConditionType "AllPeriodicActionsDone"

finishCondition
finishConditionType "TimeElapsed"
time
Level:0 60.000000
Level:1 0.000000
Level:2 0.000000

finishCondition
finishConditionType "AntiMatterDepleted"

finishCondition
finishConditionType "NoTarget"

finishCondition
finishConditionType "OwnerChanged"

finishCondition
finishConditionType "TargetOwnerIsFriendly"

finishCondition
finishConditionType "TargetOwnerIsNeutral"

finishCondition
finishConditionType "TargetOwnerIsHostile"

finishCondition
finishConditionType "OutOfRange"

finishCondition
finishConditionType "ExitHyperspace"

finishCondition
finishConditionType "TargetIsConstructed"

finishCondition
finishConditionType "TargetConstructionCannotBeUpdated"

finishCondition
finishConditionType "ResearchNotMet"
researchPrerequisites
NumResearchPrerequisites 1
ResearchPrerequisite
Subject "RESEARCHSUBJECT_PLANETMODULEACCESS_TECHSHIELDGENERATOR"
Level 1

finishCondition
finishConditionType "DamageTaken"
damageNeeded
Level:0 250.000000
Level:1 0.000000
Level:2 0.000000
typeOfDamageNeeded "AFFECTS_ONLY_HULL"

finishCondition
finishConditionType "ShieldFailure"

finishCondition
finishConditionType "EnterHyperspace"

Just so happens I recently made a collection for dubugging SOA2 

May be a few more added in Rebellion, but I only use Steam to cook veggies.

+1 Loading…
Reply #2 Top

Thanks mate, the 

finishCondition
finishConditionType "DamageTaken"
damageNeeded
Level:0 250.000000
Level:1 0.000000
Level:2 0.000000
typeOfDamageNeeded "AFFECTS_ONLY_HULL"

 

looks like what I am looking for. Cheers.

 

Is there any abilities that use this so I can copy and paste the correct structure for the entity files?

 

Reply #3 Top

Use http://notepad-plus-plus.org/download/v6.2.html, a modders best friend.

Use Search --> Find in Files and point to the reference files GameInfo directory. It will give you a link at the bottom to every file that uses that word or phrase.

 

Now, this is a link to the buff. Copy the name of the buff and do another Find in Files to find the ability that uses that buff.

Reply #4 Top

Here's a definitive list of all syntax things rebellion...

http://code.google.com/p/soaseplugin/wiki/RebellionSyntax

Here's a list of finish conditions for rebellion

http://code.google.com/p/soaseplugin/wiki/RebellionfinishConditionType

You're looking for OwnerHullAbovePerc which is used in the Eradica's ultimate.

Quoting zoommooz11, reply 2
Is there any abilities that use this so I can copy and paste the correct structure for the entity files?

Be a real coder and use an IDE like Eclipse ;)

Setting up the reference files as a project and your mod as another project allows you to search and open files with the ease. If you aren't technically savy enough for Eclipse use Notepad++.

Reply #5 Top

Ya, what Z said. Eclipse rocks if you are comfortable with a little extra setup.

Just remember, you cant use stuff from the game above in ones behind, the engine is not coded for it. Should always specify in your questions, what version of what expansion,
ie Dip 1.34 or Reb 1.whateverthehelltheyonnow