davidlallen
Deity
I am starting a new mod and it will have magic items, similar to Orthus' Axe. I do not want to drag in all of the large FFH changes, let alone mod-mods, and I am implementing the items in a very simple way.
But, I am curious to know how the AI handles items such as Orthus' Axe. I understand that some of the mod-mods such as wild mana may do this better. I would like to know what the behavior looks like, and if any of the developers can comment, I would like to know how this is handled at the code level. For example, have item-related changes been made in the unitai's, or only by separate intervention in python?
There are three behaviors which seem needed.
1. Detecting that an item is available, for example dropped after a combat result, and sending a unit to pick it up.
2. Determining which is the best unit to permanently carry an item, and delivering it to that unit.
3. Once the unit has an item, anything special for using the item. For Orthus' Axe, maybe nothing is needed here, since it gives a general +1 combat. But for other items, which have special abillities, the AI needs to position the unit with the item and then use the item at the right time.
Can anybody give any details on this?
But, I am curious to know how the AI handles items such as Orthus' Axe. I understand that some of the mod-mods such as wild mana may do this better. I would like to know what the behavior looks like, and if any of the developers can comment, I would like to know how this is handled at the code level. For example, have item-related changes been made in the unitai's, or only by separate intervention in python?
There are three behaviors which seem needed.
1. Detecting that an item is available, for example dropped after a combat result, and sending a unit to pick it up.
2. Determining which is the best unit to permanently carry an item, and delivering it to that unit.
3. Once the unit has an item, anything special for using the item. For Orthus' Axe, maybe nothing is needed here, since it gives a general +1 combat. But for other items, which have special abillities, the AI needs to position the unit with the item and then use the item at the right time.
Can anybody give any details on this?