CheckConditionalAction AND CountTargetsAction auto-succeed if no target found - leads to missions succeeding when condition is failed #16043
Replies: 4 comments
-
|
In the traitor event But when the egg is destroyed, it is removed, therefore automatically succeeding the checks. |
Beta Was this translation helpful? Give feedback.
-
This also applies to
|
Beta Was this translation helpful? Give feedback.
-
|
Ok so:
<!-- killmonsters will validate this if crawlers are far enough from the sub (they will get despawned)-->
<ScriptedEvent identifier="capturelivecrawlereventBUGGED2">
<SpawnAction speciesname="crawler" TargetTag="capturetarget" amount="3" SpawnLocation="MainPath" offset="500" />
<TagAction criteria="player" tag="player" />
<TagAction criteria="hull" tag="playerhull" submarinetype="Player" />
<Label name="checkcrawlerinside" />
<WaitAction time="1" />
<!-- check if a crawler is inside the sub, I also tried <Conditional InPlayerSubmarine="true" /> -->
<CheckConditionalAction targettag="capturetarget" logicaloperator="And">
<Conditional IsDead="False" />
<Conditional InPlayerSubmarine="true" />
<Success>
<ConversationAction targettag="player" text="Big success, there's a crawler in your ship. UNLESS THEY ARE ALL DEAD AND IT'S A BUG!" eventsprite="guywithalcohol" />
</Success>
<Failure>
<StatusEffectAction targettag="player">
<StatusEffect target="This" >
<Sound file="Content/Items/Weapons/honk.ogg" range="500" volume="1" />
</StatusEffect>
</StatusEffectAction>
<Goto name="checkcrawlerinside" />
</Failure>
</CheckConditionalAction>
</ScriptedEvent>Checks should NOT succeed in any case |
Beta Was this translation helpful? Give feedback.
-
|
Thank you for the report! This has now been addressed in our private repo:
The fix will be included in the next unstable build and the upcoming spring update. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Disclaimers
What happened?
If you use
CheckConditionalActionand a target is not found, it makes the check succeed.If a target is missing the check should clearly fail and not display an error message !
The problem is that, for example, if you target a monster, and the monster despawns (eaten), the check will succeed, even if the check was specifically about checking if the monster is alive.
The same could happen with an item that "explodes" and removes itself.
raptorescortmission will succeed if Rex dies and is eaten (despawns)you will not see the error message (because it's round end?)
Side note:
Trying to make a simple "creature escort" mission is nightmarish
Gotomission doesnt have a way to trigger a failed state through even (most mission hide their states in the code)
I'm janking my way through original content and half of it is bugged
Reproduction steps
raptorescortTeleportsub endoutpostBug prevalence
Just once
Single player or multiplayer?
Single player
-
No response
Version
v1.8.8.1 (Calm Before the Storm Hotfix 2)
-
No response
Which operating system did you encounter this bug on?
Windows
Relevant error messages and crash reports
No response
Beta Was this translation helpful? Give feedback.
All reactions