-
December 02, 2006, 08:07 AM
#1
Laetus
Help change unit upkeep/recruitment cost 4 player
Appreciate some pointers/advise on how to change unit upkeep and recruitment cost for human player only. Basically i wanted to make the campaign game more challenging by increasing the units' cost and or upkeep for the player by say 100% while allowing the AI to recruit/upkeep at the original cost. Therefore directly changing the cost/upkeep of each individual unit is not gonna work since that will affect the AI as well.
A possibly way to change the units' upkeep would be to have a script that multiples the player's military upkeep cost at the start of each turn. However im unfamiliar with the syntax in total war scripting and would appreciate if someone could provide the script for such an effect.
Changing unit recruitment cost for player only is prob more difficult and maybe even impossible but i hope some bright minds here might have thought of a method it.
Finally, does not matter if the your method requires the unpacker or if it is based on RTW and not MTW. Thanx for any of your help on this.
-
December 02, 2006, 11:00 AM
#2
Re: Help change unit upkeep/recruitment cost 4 pla
That would be the EDU file which is packed away. so You cannot change that until patch.
-
December 02, 2006, 11:36 AM
#3
Re: Help change unit upkeep/recruitment cost 4 pla
And in any case that is unmoddable if the edu is like the RTW one, where upkeep costs for a unit apply to both the ai and human player equally.
-
December 02, 2006, 12:50 PM
#4
Re: Help change unit upkeep/recruitment cost 4 pla
Beware: Ugly code.
You can probably script some stuff by using the FactionIncome and SupportCostsPercentage conditions with a lot of if statements. But as I said, ugly code.
-
December 02, 2006, 01:57 PM
#5
Laetus
As stated in the starting post, editing the unit cost/upkeep directly in the export_descr_unit.txt is not what i am looking for since it will affect both AI and human.
Alpaca : ugly code is fine with me as long as it works, could you at least point me to a place with a list of scripting syntax/commands? I was not even aware there is something call SupportCostsPercentage.
Thanx
Ok found the list of conditions/commands at http://forums.totalwar.org/vb/showthread.php?t=73016.
Browse through the files and it seemed that what I am trying to do is impossible with the limited set of conditions/commands. Hopefully someone can correct me in this.
Last edited by Trajan; December 02, 2006 at 04:41 PM.
Reason: Merged non-duplicate double post.
-
December 02, 2006, 04:14 PM
#6
Re: Help change unit upkeep/recruitment cost 4 pla
Yes I actually misinterpreted the FactionIncome condition as income, not profit.
Hmm actually thought about some even more ugly code but it's so ugly that I don't want to post it.
Last edited by alpaca; December 02, 2006 at 04:27 PM.
-
December 02, 2006, 04:41 PM
#7
Re: Help change unit upkeep/recruitment cost 4 pla
Moved to Text Editing and Scripting.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules