Increasing Merchants Denars

正在查看此主题的用户

I am currently playing the game with prices and quantities modified.I need to know how to increase the merchants money limit if it is to work properly,any help people can give me is appreciated.
 
If you have the module system, you can change this in module_triggers.py by simple increase the amount as well as the lower limit at which the shop will get more money.

Sample code for merchant (v0.960), it will be similar to all types. Triggered once a day about midnight:
(troop_ensure_inventory_space,":cur_merchant",merchant_inventory_space),
(store_troop_gold, ":cur_gold",":cur_merchant"),
(lt,":cur_gold",1500),
(store_random_in_range,":new_gold",500,1000),
(call_script, "script_troop_add_gold",":cur_merchant",":new_gold"),
(try_end),

The red 1500 is the lower limit. If below this amount, the merchant will get some more money. If you set this to be 2000, it will make sure that the merchant always has at least 2000 denars when you visit.

The green and blue are lower and upper limit for randomize. The merchant will get between 500 to 1000 denar. Change the limit to increase/decrease the amount the merchant will get.
 
Note that the town's prosperity now affects a merchant's number of denars, but I do not yet know where in the module system this takes affect.
 
后退
顶部 底部