RimWorld

RimWorld

Custom Alerts
晓山alreShan 30. aug. 2024 kl. 1:11
looking for help making alert that drafted pawn doing nothing
I'm thinking to make a alert, that pawn been drafted, but doing nothing [not actively fighting(shooting or meleeing) or moving]
Here's alert I created try to implement it, but this can't differentiate pawn that shooting or meleeing from doing nothing (with no given order).
<TD_Find_Lib.QuerySearch> <saveable Class="TD_Find_Lib.QuerySearch"> <name>drafted pawn doing nothing</name> <listType>Selectable</listType> <searchMaps /> <queries> <li Class="TD_Find_Lib.ThingQueryDrafted"> <def>Query_Drafted</def> </li> <li Class="TD_Find_Lib.ThingQueryJob"> <def>Query_Job</def> <refName>Wait_Combat</refName> </li> </queries> <matchAllQueries>True</matchAllQueries> </saveable> </TD_Find_Lib.QuerySearch>
I notice there is a icon on colonist's selection bar, as picture shows
https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3320610463
But I didn't manage to find this either in pre-selections or Custom (advanced):steamfacepalm:

Looking for help:GunfireRebornhandsup:, appreciate any help
Sidst redigeret af 晓山alreShan; 30. aug. 2024 kl. 1:17
< >
Viser 1-2 af 2 kommentarer
Uuugggg  [udvikler] 30. aug. 2024 kl. 13:55 
<TD_Find_Lib.QuerySearch> <saveable Class="TD_Find_Lib.QuerySearch"> <name>Ctrl-F Search</name> <active>True</active> <listType>Everyone</listType> <searchMaps /> <queries> <li Class="TD_Find_Lib.ThingQueryDrafted"> <def>Query_Drafted</def> </li> <li Class="TD_Find_Lib.ThingQueryJob"> <def>Query_Job</def> <refName>Wait_Combat</refName> </li> <li Class="TD_Find_Lib.ThingQueryAndOrGroup"> <def>Query_AndOrGroup</def> <queries> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>stances.curStance.as Stance_Warmup.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>stances.curStance.as Stance_Cooldown.is not null</memberChain> </li> </queries> <matchAllQueries>False</matchAllQueries> </li> </queries> <matchAllQueries>True</matchAllQueries> </saveable> </TD_Find_Lib.QuerySearch>

Looks like firing guns is part of the "wait" job just with a different "stance".

There's no stance tracker in TDFindLib but the custom filter can access it huzzah. )Be sure to check warmup OR cooldown)

Also take note to use listType aka Searching Through: everyone so it's not checking if walls are using guns
晓山alreShan 30. aug. 2024 kl. 19:06 
:D wow! thank you!
< >
Viser 1-2 af 2 kommentarer
Per side: 1530 50