RimWorld

RimWorld

Custom Alerts
(Anomaly DLC) Is there a way to search for entities held on platform?
In particular, I want to make an alert when the HP of the brain of a Bulbfreak in containment drop below 3/3. But I am stuck not knowing how to search for Bulbfreak, or any entity.
Should I use search for Everything or search for Everyone? It is a pawn. Does it fall under Person/Animal etc.?
Can someone enlighten me?
< >
Showing 1-2 of 2 comments
This below can be used to find pawn that has brain injury.
<TD_Find_Lib.QuerySearch> <saveable Class="TD_Find_Lib.QuerySearch"> <name>Ctrl-F Search</name> <listType>Everyone</listType> <searchMaps /> <queries> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>health.hediffSet.hediffs.as Hediff_Injury.Part.def.is exact def</memberChain> <compareTo>Brain</compareTo> </li> </queries> <matchAllQueries>True</matchAllQueries> </saveable> </TD_Find_Lib.QuerySearch>


I tried to manage to get a search about spine destroyed. But no...didn't manage to get it. This will be useful, hope to find someone make it. :waxquail:
Well...a alternative for spine destroyed entity now(*or ever)
<TD_Find_Lib.QuerySearch> <saveable Class="TD_Find_Lib.QuerySearch"> <name>Ctrl-F Search</name> <listType>Everyone</listType> <searchMaps /> <queries> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>IsEntity</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <include>False</include> <matchType>Verse.Pawn</matchType> <memberChain>IsShambler</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <enabled>False</enabled> <matchType>Verse.Pawn</matchType> <memberChain>kindDef.is exact def</memberChain> <compareTo>Colonist</compareTo> </li> <li Class="TD_Find_Lib.ThingQueryCapacity"> <def>Query_Capacity</def> <refName>Moving</refName> </li> <li Class="TD_Find_Lib.ThingQueryHealth"> <def>Query_Health</def> <include>False</include> <refName>PsychicShock</refName> </li> </queries> <matchAllQueries>True</matchAllQueries> </saveable> </TD_Find_Lib.QuerySearch>
< >
Showing 1-2 of 2 comments
Per page: 1530 50