Need help with ban city-state war and modifying pillage cost

Feofilakt

Chieftain
Joined
Oct 22, 2019
Messages
36
Hello! I want to create two modifiers:
1. city-state with governor cannot declare war on governor's owner (but declaring war on this city-state should remove the governor ofk)
2. pillage costs 2 MP more in single city

I suspect there is no such standard effects in the game and lua coding is needed. Will appreciate any help!
 
Last edited:
I've been able to decrease unit's MP after pillage:

UnitManager.ChangeMovesRemaining(pUnit, -2);

But it does not prevent the unit from pillaging if it has less MP. Someone has any ideas?
 
Top Bottom