UnofficialCrusaderPatch / UnofficialCrusaderPatch2

Unofficial balancing patch installer for Stronghold Crusader 1
MIT License
429 stars 59 forks source link

new conditions for attacks #404

Open Krarilotus opened 5 years ago

Krarilotus commented 5 years ago

Hello, i am new to this segment, and just want to issue one particualr thing: is it possible to add more criteria to modify for the control of the troops, that an AI has, while it is attacking?

For example: if i wanted to change the criteria for where siege units are placed/build and how they move to attack the houses, walls etc. With catapults the AI has to target fire a building or wall and i woud like to change the impact point of those attacks. Also, might it be possible to combine two unit types into one ranged army force? Such as riding horse archers with shields or shields with siege weapon. But i dont know, what exactly woud be possible. Is there a way to assist you in coding?

Sorry if i ask too much. I just find the idea interesting to add more criteria for micromanagement.

One example for working micro are the crossbowman, Usually they move and attack alternatingly, Maybe more of this is possible?

greetings, Krarilotus (former known for Kreuzmörder jojo back in the days)

Sh0wdown commented 5 years ago

if i wanted to change the criteria for where siege units are placed/build and how they move to attack the houses, walls etc. With catapults the AI has to target fire a building or wall and i woud like to change the impact point of those attacks.

That's possible but you have to specify what and how exactly things should be changed.

Also, might it be possible to combine two unit types into one ranged army force? Such as riding horse archers with shields or shields with siege weapon. But i dont know, what exactly woud be possible.

This is too complex imo.

Is there a way to assist you in coding?

If you know or learn assembler code, yes. Some more infos here: https://github.com/Sh0wdown/UnofficialCrusaderPatch/issues/270

Krarilotus commented 5 years ago

Ok. Yeah i tried to invest time into that, just because of Crusader 6 years ago, and it was a little to rough back then. If i have more time i ll try that, but i guess i will try to help on other ends, llike finding out variables or giving tipps/advancements for the AI.

So what i had in mind with the combination thing: You already have the army movement on one speed, for the 4 main attack units. The problem right now is, that shields will not be counted as a regular unit but as a siege unit. So the main thing that woud be needed first, is to make a construction spot for movable siege engines. Like you alrdy havea randomized construction spot for the raid catapults.

So if you can make this construction spot for any siege unit, that is used as a unit, then we coud use shields / catapults in masses as a player woud do.

But maybe thats not that easy? Thanks for repliing that fast. Your work is excellent and i have to admit, i am very impressed what youve gotten done so far! Keep it up!