You could use this way without using the cheat editor. Add to the GM1_APOL_script.slc these lines, you can use any text editor of your choice e.g. notepad:
Code:
|
HandleEvent(ArmyClicked)'RemoveGold'pre{
int_t AmountOfGold;
AmountOfGold = -2000000;//here put the amount of gold you want to remove
AddGold(g.player, AmountOfGold);
} |
Just copy and paste this from this post to the file by marking the lines and then using Ctrl+c and using Ctrl+v in the file.
You can now start the game, if it is not already started, once you are within the game you can open the chat screen and enter /reloadslic. Then click on a unit and you see the decrease in gold. Don't click to often on it, if you removed enough gold you can disable the code in the GM1_APOL_script.slc by outcommentnig it or by removing once it is done you have to reloadslic again.
Another way to remove the gold is using the scenario editor, to do it in a effective way you could go to the scenarioeditor.ldl in your ..\ctp2_data\german\uidata\layouts\ folder and find there this part:
Code:
|
AddGold:CTP2_TEXT_FIELD {
int xpix 140
int ypix 200
int widthpix 130
int maxfieldlen 7
string statustext "str_SE_AddGold"
string tipwindow "str_SE_AddGold"
} |
Increase the number after maxfieldlen, and you should be able to enter more digest into that field.
-Martin