bloodystump
11-19-2007, 01:56 PM
I believe i've finally worked out how to make buildings TAKE money from the player.
I tested this with \Data\XMLDb\Game\Objects\BUILDINGS\SC5a Billboard.xml and managed to get it to remove money from the player's bank.
Add;
<Ability type="Taxes" script_object="MoneyProduction" param="amount=-200;hour=9" />
(i don't think ' script_object="MoneyProduction" ' is required for this to work)
to the billboard file, and the game will subtract 200 Simoleans at 9am.
Now within Data\XMLDb\UI\City Card\Budget.xml, change;
<DisplayThreshold stringid="TT_CITY_INFO_STATUS_POOR" mouseoverid="TT_BUDGET_POOR" minValue="0" maxValue="1" />
to;
<DisplayThreshold stringid="TT_CITY_INFO_STATUS_POOR" mouseoverid="TT_BUDGET_POOR" minValue="-500000" maxValue="1" />
otherwise the game crashes when you open the citycard. I wasn't sure what to make the low end value, so i just entered -500000 and the game stopped crashing.
I've not been able to test this for long term effects as my game is crashing regularly anyway, preventing me from actually playing properly :/
I tested this with \Data\XMLDb\Game\Objects\BUILDINGS\SC5a Billboard.xml and managed to get it to remove money from the player's bank.
Add;
<Ability type="Taxes" script_object="MoneyProduction" param="amount=-200;hour=9" />
(i don't think ' script_object="MoneyProduction" ' is required for this to work)
to the billboard file, and the game will subtract 200 Simoleans at 9am.
Now within Data\XMLDb\UI\City Card\Budget.xml, change;
<DisplayThreshold stringid="TT_CITY_INFO_STATUS_POOR" mouseoverid="TT_BUDGET_POOR" minValue="0" maxValue="1" />
to;
<DisplayThreshold stringid="TT_CITY_INFO_STATUS_POOR" mouseoverid="TT_BUDGET_POOR" minValue="-500000" maxValue="1" />
otherwise the game crashes when you open the citycard. I wasn't sure what to make the low end value, so i just entered -500000 and the game stopped crashing.
I've not been able to test this for long term effects as my game is crashing regularly anyway, preventing me from actually playing properly :/