Editing Village Income

Users who are viewing this thread

Can someone tell me where in the Module files I can find information about the income from village, and town and castles as well? Also is there some way to make villages pay taxes even after they've been looted? Thanks.
 
In the module file simpletriggers.py you can find the following code:

Code:
#Collect taxes for another week
      (try_for_range, ":center_no", centers_begin, centers_end),
        (try_begin),
          (party_slot_ge, ":center_no", slot_town_lord, 0), #unassigned centers do not accumulate rents	  
        
          (party_get_slot, ":accumulated_rents", ":center_no", slot_center_accumulated_rents),		  
		
          (assign, ":cur_rents", 0),
          (try_begin),
            (party_slot_eq, ":center_no", slot_party_type, spt_village),
            (try_begin),
              (party_slot_eq, ":center_no", slot_village_state, svs_normal),
              (assign, ":cur_rents", 1200),
            (try_end),
          (else_try),
            (party_slot_eq, ":center_no", slot_party_type, spt_castle),
            (assign, ":cur_rents", 1200),
          (else_try),  
            (party_slot_eq, ":center_no", slot_party_type, spt_town),
            (assign, ":cur_rents", 2400),
          (try_end),

Just change numbers 1200 and 2400.
To make them pay even when they are looted, just remove:
Code:
 (party_slot_eq, ":center_no", slot_village_state, svs_normal),
 
Thanks. I changed it to this, but while it showed up correctly in the troop cost and rents screen no actual money came to the player.

(assign, ":cur_rents", 0),
          (try_begin),
            (party_slot_eq, ":center_no", slot_party_type, spt_village),
            (try_begin),
              (party_slot_eq, ":center_no", slot_village_state, svs_normal),
              (assign, ":cur_rents", 7200),
            (else_try),
              (party_slot_eq, ":center_no", slot_village_state, svs_looted),
      (assign, ":cur_rents", 3600),
            (try_end),   
          (else_try),
            (party_slot_eq, ":center_no", slot_party_type, spt_castle),
            (assign, ":cur_rents", 7200),
          (else_try), 
            (party_slot_eq, ":center_no", slot_party_type, spt_town),
            (assign, ":cur_rents", 14400),
          (try_end),
 
Looks good and when it's shown in the Budget Report then it should be given to the player every week.

Do you use any Mods, like diplomacy, that put the money into a treasury or something.
 
Back
Top Bottom