Skajaquada
Crazy Engineer
- Joined
- Mar 4, 2007
- Messages
- 134
I've been thinking a little about interesting things to add to my mod. I haven't tried adding an attack-modifier yet but I think I've seen someone do that in a mod so it seems doable. I like the idea of adding attack-modifiers as it've got a very low chance of feeling glued on as it's already part of the game. It's just like adding more civilizations, units and technologies.
I previously had an idea of a fear-modifier where built units would get a Total Fear-, Fear Resistance- and Spread Fear-, and Routed Fear Limit-value. I'm not sure if there's a better way to add and keep track of them, but I was thinking of simply adding arrays for them in the LUA-files. Then when a unit is built these values are applied based on their names or part of their names. Maybe even some promotion can affect it.
At appropriate times like when the unit survives a bad attack the fear is increase (or morale is decreased, whatever sounds better), maybe generals nearby reduce the effect. Every turn all units total-fear could also decrease. Then when that routed-level is reached the unit gets something like 75% less attack-strength. I was originally thinking the unit could randomly run away but that feels a little glued on.
Recently I got a similar idea of Supply Count. Simply after a unit is built there's a Supply-value that's always decreased whenever it fights until again... Attack-strength is reduced with 75%. It can then increase whenever the unit is on friendly territory, or to make it a little more interesting it needs to rest in a city. It would also give melee-units an edge (all of this makes more sense considering a WH40K-mod
) over ranged units.
Another idea is similarly Rage, the unit would get a slight bonus for every attack it succeeds until it fails... Or Corruption (in WH40K) for everything Daemonic it kills it gets something...
One question is if the AI could have any chance to work with any of this? Perhaps it just by default withdraw it's units if they've got very low strength? I suppose it could easily be disabled for the computer-players to even it out, still that makes it also seem glued on... Anyway, I'd just like to know if anyone got any ideas, or thoughts on how this could work.
I previously had an idea of a fear-modifier where built units would get a Total Fear-, Fear Resistance- and Spread Fear-, and Routed Fear Limit-value. I'm not sure if there's a better way to add and keep track of them, but I was thinking of simply adding arrays for them in the LUA-files. Then when a unit is built these values are applied based on their names or part of their names. Maybe even some promotion can affect it.
At appropriate times like when the unit survives a bad attack the fear is increase (or morale is decreased, whatever sounds better), maybe generals nearby reduce the effect. Every turn all units total-fear could also decrease. Then when that routed-level is reached the unit gets something like 75% less attack-strength. I was originally thinking the unit could randomly run away but that feels a little glued on.
Recently I got a similar idea of Supply Count. Simply after a unit is built there's a Supply-value that's always decreased whenever it fights until again... Attack-strength is reduced with 75%. It can then increase whenever the unit is on friendly territory, or to make it a little more interesting it needs to rest in a city. It would also give melee-units an edge (all of this makes more sense considering a WH40K-mod

Another idea is similarly Rage, the unit would get a slight bonus for every attack it succeeds until it fails... Or Corruption (in WH40K) for everything Daemonic it kills it gets something...

One question is if the AI could have any chance to work with any of this? Perhaps it just by default withdraw it's units if they've got very low strength? I suppose it could easily be disabled for the computer-players to even it out, still that makes it also seem glued on... Anyway, I'd just like to know if anyone got any ideas, or thoughts on how this could work.