RimWorld

RimWorld

Custom Alerts
attacking specific thing
I want to make a alert for when pawn free targeting at specific thing(in this case is insectoid hive)
I have tried these belows, but unfortunately none of them works.
<TD_Find_Lib.QuerySearch> <saveable Class="TD_Find_Lib.QuerySearch"> <name>free firing at hive(%n)</name> <listType>Everyone</listType> <searchMaps /> <queries> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>jobs.curDriver.TargetThingA.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>TryGetAttackVerb().targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>CurrentEffectiveVerb.verbProps.targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>Verse.AI.IAttackTargetSearcher.Thing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>verbTracker.verbs.targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>verbTracker.verbs.targetParams.targetSpecificThing.as Hive.comps.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>equipment.pawn.verbTracker.verbs.as Verb_Shoot.targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>equipment.equipment.TryGetAttackVerb().verbTracker.verbs.targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>equipment.equipment.TryGetAttackVerb().as Verb_ShootCE.targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>equipment.PrimaryEq.verbTracker.PrimaryVerb.targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>equipment.PrimaryEq.verbTracker.PrimaryVerb.as Verb_ShootCE.targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> <li Class="TD_Find_Lib.ThingQueryCustom"> <def>Query_Custom</def> <matchType>Verse.Pawn</matchType> <memberChain>equipment.equipment.def.Verbs.targetParams.targetSpecificThing.as Hive.is not null</memberChain> </li> </queries> <matchAllQueries>False</matchAllQueries> </saveable> </TD_Find_Lib.QuerySearch>
< >
Showing 1-2 of 2 comments
only first one works for given order attacking hive
Uuugggg  [developer] 7 Jun @ 4:14pm 
Yea shoot, it looks like that target info is held in a struct, aka data that TDFindLib doesn't give access to (for some reason)
< >
Showing 1-2 of 2 comments
Per page: 1530 50