BTW, how do I have my homun prioritize whatever its doing rather than defending its owner?
Currently: The homunculus will stop attacking Zenorcs and come defend me if a Drainliar attacks me.
What I would like: Have the homunculus finish attacking the Zenorc and any other monster(s) that is attacking it first BEFORE coming to defend me.
rail_state["AssistOptions"]["Other"] = "indifferent"
rail_state["AssistOptions"]["Owner"] = "avoid"
rail_state["AssistOptions"]["Friend"] = "indifferent"
But doesn't seem to make any difference. Anything else not described in the documentation I have no idea how to use it.
The "AssistOptions" group only refers to monsters that you (or friend/other) are attacking, not what's attacking you. That is, it will assist to kill faster. What you want to look at instead is "DefendOptions". You've got a couple options here.
- You can turn off defense entirely:
rail_state["DefendOptions"]["DefendWhileAggro"] = false
Turning off defense entirely will prevent RAIL from prioritizing protection while aggressive. It will eventually get to the monsters attacking you when all higher-priority monsters on the screen are dead. This includes monsters that haven't been aggroed yet.
- You can change the threshold before RAIL will defend you:
rail_state["DefendOptions"]["OwnerThreshold"] = 3
Raising the OwnerThreshold is a safer method, but trickier to get setup right. Currently the various thresholds refer to the number of monsters attacking. Eventually, I'll add an option that will allow this to be changed to the total sum of the monster's priority. That'll come later, so I'll just try to briefly explain as it is now.
Basically, when the number of monsters attacking a person (grouped under "Owner", "Friend" or "Self") exceeds the threshold specified, that group of monsters will be prioritized above all others. Whichever threshold is highest takes the first priority, so with the defaults (owner = 1, self = 5) RAIL will prioritize defense of the owner until there are at least 5 monsters attacking the homunculus/mercenary. When that happens it will prioritize defending itself until it's own attacker count drops below 5.
If both owner and self are set at threshold of 3, for example, it won't prioritize defense until there are 3 or more attackers. After reaching 3, whichever person (owner or homu/merc) has the most will be defended. With both thresholds set to 3, 7 monsters on the homu and 4 on the alchemist, RAIL will kill monsters attacking the homu until it reaches 4, and then defend one at a time from each until both drop below 3 attackers.
Note that when the group of attackers gets prioritized, they still maintain priority levels inside that group. Also, setting threshold to 0 will disable defense for a specific group (owner, self, friend).
To get what I think is your desired behavior, set OwnerThreshold to 0 and SelfThreshold to 1. Then, it won't defend you until all monsters attacking it are dead regardless of the number attacking you.