Oldschool
Sergeant at Arms
I'm not really sure where to ask about this, so I'll try here and see if I can get some discussion from those with experience.
I like the new grouping commands from the party menu. It's nice for being able to divide your units how you want and use them that way. I have quite a few questions related to that, though. I would like to be able to manipulate these groups through scripting for purposes of some AI skirmishing/horse archery tactics.
1) I can't find the party menu anywhere in Module_presentations or module_game_menus. Have I overlooked it, it's in a different place, or it just isn't available to modders?
2) When you change a units group, does it actually change its class, as accessed from agent_get_class, or does it only change its group as accessed from the battlefield commands? I'm assuming that the actual class of a unit is hardcoded, and the grouping is only available to players to be used in an actual battle. i.e...If a unit is considerd to be in the archer class, agent_get_class will return grc_archers, regardless of what group you have manually put him in.
3) If you are marshall and are in control of allied armies, do your allies units honor your grouping selections, or are they treated as their default class, regardless? i.e...if you have set your horse archers to be group 4, will your allies horse archers be set to that group when in battle under your command?
4) The only classes I've seen defined are grc_infantry, grc_archers, grc_cavalry, grc_heroes, and grc_everyone. Can you access other classes by using hard numbers. i.e...checking agent_get_class for a return of 6 or 8,etc to return a user-defined group?
I guess my basic question is, what is the relationship between the player-defined groupings and the actual class of a unit for scripting purposes. Also, I can not find any way to change an agents class through scripting operations, if anybody knows of such a method.
I'll do some testing and tinkering and try to find these answers myself, and I don't expect anyone to do my research for me. However, if you have some experience with this and want to share your insight, any input would be greatly appreciated.
I like the new grouping commands from the party menu. It's nice for being able to divide your units how you want and use them that way. I have quite a few questions related to that, though. I would like to be able to manipulate these groups through scripting for purposes of some AI skirmishing/horse archery tactics.
1) I can't find the party menu anywhere in Module_presentations or module_game_menus. Have I overlooked it, it's in a different place, or it just isn't available to modders?
2) When you change a units group, does it actually change its class, as accessed from agent_get_class, or does it only change its group as accessed from the battlefield commands? I'm assuming that the actual class of a unit is hardcoded, and the grouping is only available to players to be used in an actual battle. i.e...If a unit is considerd to be in the archer class, agent_get_class will return grc_archers, regardless of what group you have manually put him in.
3) If you are marshall and are in control of allied armies, do your allies units honor your grouping selections, or are they treated as their default class, regardless? i.e...if you have set your horse archers to be group 4, will your allies horse archers be set to that group when in battle under your command?
4) The only classes I've seen defined are grc_infantry, grc_archers, grc_cavalry, grc_heroes, and grc_everyone. Can you access other classes by using hard numbers. i.e...checking agent_get_class for a return of 6 or 8,etc to return a user-defined group?
I guess my basic question is, what is the relationship between the player-defined groupings and the actual class of a unit for scripting purposes. Also, I can not find any way to change an agents class through scripting operations, if anybody knows of such a method.
I'll do some testing and tinkering and try to find these answers myself, and I don't expect anyone to do my research for me. However, if you have some experience with this and want to share your insight, any input would be greatly appreciated.