PDA

View Full Version : Making buildings cost the player money


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 :/

Techleo
11-19-2007, 02:42 PM
Sorta tough to mod when you cant play stable. That being said your making excellent progress! I love the idea of items costing money! In fact I could see the entire simcity 4 economy running in SCS. Albeit with no graphs and charts to help you keep track. hehe meaning this would be one nightmare of a game to plan. Then again it mite be a fun challenge for me:D