cooldude1128
Prince
- Joined
- Jun 6, 2012
- Messages
- 322
I'm trying to make a custom mechanical civilization as my first mod, and I came up with an idea for a trait called Mechanical Evolution, that would reduce the XP needed for a promotion as well as provide additional damage every time you attack an enemy in a row, such as:
My soldier(100) attacks Enemy(100), resulting in me(90) and them(90). The next turn, I attack them again, but this time it ends up like me(80) them(75). The next turn, 10 damage is added, and the turn after that, 20, etc etc. I haven't the slightest clue on how to make this work, though I do have all the required stuff to add the coding if I could learn how.
So in conclusion, if one of you could point me to the right hooks or give me a bit of code, or at least tell me what to do, then I'd be grateful.
My soldier(100) attacks Enemy(100), resulting in me(90) and them(90). The next turn, I attack them again, but this time it ends up like me(80) them(75). The next turn, 10 damage is added, and the turn after that, 20, etc etc. I haven't the slightest clue on how to make this work, though I do have all the required stuff to add the coding if I could learn how.
So in conclusion, if one of you could point me to the right hooks or give me a bit of code, or at least tell me what to do, then I'd be grateful.