RimWorld

RimWorld

51 ratings
Custom Actions
2
2
   
Award
Favorite
Favorited
Unfavorite
Mod, 1.4, 1.5
File Size
Posted
Updated
158.693 KB
Jan 4, 2024 @ 9:10pm
Mar 25, 2024 @ 8:08am
20 Change Notes ( view )

Subscribe to download
Custom Actions

Description
Create periodic actions such as blood donation or chopping woods when needed.

Features
Click on the mainbutton named "Action" to get started.

After you create a new search, you can click on the edit icon on the left to edit actions to the filtered things. Click "Add Sub-action" to add some actions. If you want to remove the sub-action, just click on it.

Actions
Support actions: Harvest, Mine, Deconstruct, Haul, Tame, Hunt, Strip, Cancel, HaulUrgently, FinishOff (from AllowTool), Capture (from Capture Them), Increase quality (from Easy Upgrades), and Medical Bills.

An action can consist of several sub-actions, which will be performed on filtered things in the order of sub-actions. For example, an action consists of ("Clear Billstack", "extract hemogen pack") will first clear the bills for all filtered pawns, then add the bill on them.

The enabled action will run in a loop. You can set the interval of the loop (for example, blood donation, or harvest harvestable bushes every day). Some options of the action are the same as the ones in Custom Alerts.

Before trying to add a medical bill, it will check if the target has the same bill already, or cannot be performed the operation (already has the implant, or does not have the body part).

Performance
Searches and actions are processed at regular interval (default: a day). Unless you set the intervals to be TOO small, this process should not be slow. Also, set up the filters to be smart (do not search for all the things when you only want to harvest the ambrosia plants). See TD Find Lib for more details.

TD Find Lib
This mod uses the framework mod TD Find Lib to allow filters to find what you want to act on. For more details, check out that mod page.

Credits
This mod is inspired by Custom Alerts by Uuugggg and Colony Manager by Fluffy.

Source code[github.com]
Popular Discussions View All (2)
0
Mar 25, 2024 @ 7:15am
BUG REPORTS
zeus
0
Mar 25, 2024 @ 12:14am
Action Examples
zeus
48 Comments
Gladio Nov 24, 2024 @ 9:49pm 
is it possible to make a custom sub action?
hjk321 Nov 22, 2024 @ 5:08pm 
I don't see a way to filter by existing operation bill. Also, the difference between "filter" and "trigger" with their accompanying number fields are not adequately explained in the mod description. It's frustrating not being able to test your action very well because it only triggers once per day...
HawnHan Nov 12, 2024 @ 10:41pm 
你好,我记得之前是有教程的,怎么一下子找不到了,我重新回来玩这游戏后,设置应该是没有问题(经过过滤器筛选,都是有对应的准确内容),但是不执行操作,很奇怪。
Justacommonegg Oct 19, 2024 @ 2:08pm 
Is there any way we can save and port the custom actions (not filters) to different saves? it s kind of a shame having to redo stuff with highly complex actions. thank you for your time
zyzyhasl Jul 25, 2024 @ 1:50am 
您好,想请教一下如何过滤掉已经产生免疫的疾病状态
DLMSweet May 18, 2024 @ 2:13pm 
I'm having troubles getting an action to work with the mod "Vanilla Races Expanded - Androids". I'm trying to set an action to replace the reactor in an android when it gets low, but no matter if I choose 'remove component (reactor)' or 'remove part (reactor)', I can't get the action to trigger. The "install reactor" medical bill seems to work without issue if I manually remove the reactor first (using the "Remove component (reactor)" operation. Any ideas on how I could make this work?
lol May 12, 2024 @ 12:48pm 
How to use this to substitute Colony Manager?
zeus  [author] Apr 18, 2024 @ 7:56pm 
@Otoya, no. The builtin search only filters things by their name.
Otoya Apr 18, 2024 @ 7:48am 
Can you get rid of the TD Find Library dependency now that builtin search has been added?
Cecil Mar 25, 2024 @ 8:49am 
Looks good, thanks!