davidlallen
Deity
I have been trying to come up with a good system for "precious fuel" as shown in the Mad Max movies. There is a quantitative resource thread, which is under development, and a fuel modcomp which is done but doesn't do quite what I want. I thought of another way to do it with a set of 5 promotions representing fuel levels.
Level 5 is "full tank", level 4 is "3/4 tank", ... level 1 is "Out Of Gas". What I would like to do is give the "full tank" promotion to a unit when it is created or refueled. Then after 5 turns, it loses the "full" promotion and gains the "3/4 tank" promotion. After another 5 turns it goes to "1/2 tank", etc. None of the promotions make any difference except "Out of Gas". The OOG promotion has a huge move penalty (-5?) and a huge strength penalty (-75%). Tanker trucks would have a mission which resets the promotions for all the units in the stack.
I know the AI won't deal with this. But the other two threads, so far, have the exact same problem. Also, I know this would be a huge pain for WWII type simulations; but it is perfect for "precious fuel" situations like mine.
So, the question is: I don't think I will have time to master the SDK; of course anything is possible in the SDK. Can this be done in python? Is there an existing example which does this, or a standalone snippet which shows the secret? I have written mapscripts and small event handlers in python, so that programming part is no problem.
Level 5 is "full tank", level 4 is "3/4 tank", ... level 1 is "Out Of Gas". What I would like to do is give the "full tank" promotion to a unit when it is created or refueled. Then after 5 turns, it loses the "full" promotion and gains the "3/4 tank" promotion. After another 5 turns it goes to "1/2 tank", etc. None of the promotions make any difference except "Out of Gas". The OOG promotion has a huge move penalty (-5?) and a huge strength penalty (-75%). Tanker trucks would have a mission which resets the promotions for all the units in the stack.
I know the AI won't deal with this. But the other two threads, so far, have the exact same problem. Also, I know this would be a huge pain for WWII type simulations; but it is perfect for "precious fuel" situations like mine.
So, the question is: I don't think I will have time to master the SDK; of course anything is possible in the SDK. Can this be done in python? Is there an existing example which does this, or a standalone snippet which shows the secret? I have written mapscripts and small event handlers in python, so that programming part is no problem.