Home » MODDING HQ 1.13 » Flugente's Magika Workshop » New feature: individual militia
Re: New feature: individual militia[message #352617 is a reply to message #352295]
|
Sun, 04 March 2018 23:16
|
|
Flugente |
|
Messages:3507
Registered:April 2009 Location: Germany |
|
|
As of r8537 & GameDir r2409, we can do more things with individual militia. First things first, all militia-related assignments are now in their own sub-menu:
- The first option does what militia training does: train new militia (or promote existing ones if no more room or volunteers).
- The second option is new: drill militia trains existing green or regular militia until they are promoted, but does not train new ones. We basically increase their internal promotion points (made up from kills and assists in battle). Once we reach INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR or INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_ELITE, we promote the militia (if we play with militia resources, we put the promotion on hold until we have enough resources. This is as effective as promotions via training new militia is:
- a normal militia training session requires 10000 points (when training, you see a merc's training points / 10 /maximum training points / 10 on their face).
- a training session would allow promoting NUM_MILITIA_TRAINED_PER_SESSION militia
- a green militia requires INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR to promote
- it thus follows that one point of militia experience is worth 10000 / (NUM_MILITIA_TRAINED_PER_SESSION * INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR) training points, so we apply that to our training points
Similar, it follows that
- a normal training session costs $ MILITIA_BASE_TRAINING_COST * MILITIA_COST_MULTIPLIER_REGULAR
- it promotes NUM_MILITIA_TRAINED_PER_SESSION militia with INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR points each
- thus a point costs $ MILITIA_BASE_TRAINING_COST * MILITIA_COST_MULTIPLIER_REGULAR / (NUM_MILITIA_TRAINED_PER_SESSION * INDIVIDUAL_MILITIA_PROMOTIONPOINTS_TO_REGULAR)
, so we always deduct that money. Can't have one assignment be free while the other costs something, no?
Experience is awarded in similar manner for training provided (trainig empty air does not award experience).
One important part: This works in any sector, regardless of whether training new militia is possible there, as long as militia that can be trained are present.
This only works with individual militia.
- The third option is new: doctor militia allows restoring militia HP similar to how the regular doctor assingment works. This obviously requires INDIVIDUAL_MILITIA_MANAGE_HEALTH to be TRUE.
As you may or may not be aware, individual militia data doesn't directly store militia health points (that would be useless, as militia stats depend on class, game progress and sector). We store their health ratio instead. They already heal INDIVIDUAL_MILITIA_HOURLYHEALTHPERCENTAGEGAIN % each hour, now you can speed that up by doctoring.
Of course, given the huge number of militia and their... tactics, that would be a lot of wounds to treat... a daunting task for your doctors. For that reason, you can increase the effectivity of a doctor on that task: INDIVIDUAL_MILITIA_DOCTORHEALMODIFIER determines how many percent one doctoring point heals (for example, stock Spider has 362 points, each normally heals 1/100 of a merc's HP). I set it to 0.2 in stock. To achieve near parity with merc healing (and likely keep all the doctors on the roster busy )use 0.01. Values from 0.01 to 1.0. That value is already applied to a merc's image on that assignment - in the above picture, Spider can heal 72.4% of a militia's HP.
This also works in any sector as long as militia in somewhat ruffled condition are present.
I hope that this will be quite helpful in making individual militia more useful. One could, say, pack a platoon of FNGs, a few trainers and medics to represent military advisors and LTs, and go to battle with that.
This is savegame compatible.
[Updated on: Sun, 04 March 2018 23:21]
I know now that it could never work between us, as much as we wanted to, it could never be! Not because you're a rabbit, but because you're black.
If you want, you can donate to me. This will not affect how and what I code, and I will not code specific features in return. I will be thankful though.Report message to a moderator
|
|
|
|
|
|
New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Panzer on Fri, 06 May 2016 21:30
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Fri, 20 May 2016 04:03
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sat, 21 May 2016 21:47
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sun, 22 May 2016 14:35
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: 3iff on Mon, 23 May 2016 10:06
|
|
|
Re: New feature: individual militia
By: ratpaz on Mon, 23 May 2016 14:51
|
|
|
Re: New feature: individual militia
By: 3iff on Wed, 25 May 2016 10:15
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: 3iff on Thu, 26 May 2016 11:49
|
|
|
Re: New feature: individual militia
By: Uriens on Fri, 03 June 2016 13:24
|
|
|
Re: New feature: individual militia
By: Elvis_A on Wed, 06 July 2016 20:03
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Elvis_A on Wed, 06 July 2016 21:16
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Elvis_A on Wed, 06 July 2016 22:45
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sun, 17 July 2016 00:30
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sun, 17 July 2016 10:13
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Sun, 17 July 2016 17:45
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Tue, 19 July 2016 14:33
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: ratpaz on Wed, 20 July 2016 07:46
|
|
|
Re: New feature: individual militia
By: Thor on Mon, 25 July 2016 20:25
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Thor on Tue, 26 July 2016 02:00
|
|
|
Re: New feature: individual militia
By: ratpaz on Tue, 02 August 2016 09:05
|
|
|
Re: New feature: individual militia
By: Flugente on Tue, 02 August 2016 13:14
|
|
|
Re: New feature: individual militia
By: Inukshuk on Tue, 02 August 2016 16:38
|
|
|
Re: New feature: individual militia
By: ratpaz on Tue, 02 August 2016 21:07
|
|
|
Re: New feature: individual militia
By: Uriens on Sun, 07 August 2016 20:25
|
|
|
Re: New feature: individual militia
By: Boojum on Fri, 02 September 2016 06:30
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Boojum on Fri, 02 September 2016 19:19
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Boojum on Sat, 03 September 2016 09:52
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Enneagon on Sat, 03 September 2016 13:47
|
|
|
Re: New feature: individual militia
By: Boojum on Sat, 03 September 2016 19:48
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Elvis_A on Mon, 05 February 2018 08:35
|
|
|
Re: New feature: individual militia
By: Flugente on Sun, 04 March 2018 23:16
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Mon, 14 November 2016 01:04
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Fri, 13 January 2017 20:42
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Fri, 13 January 2017 21:46
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Fri, 13 January 2017 22:23
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Sat, 14 January 2017 02:22
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Sat, 14 January 2017 02:34
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Sat, 14 January 2017 02:53
|
|
|
Re: New feature: individual militia
By: Hawkeye on Sun, 15 January 2017 04:08
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Wed, 25 January 2017 21:19
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Hawkeye on Sat, 14 January 2017 02:59
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Thu, 21 September 2017 21:40
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Thu, 05 October 2017 23:01
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Shadow on Fri, 12 January 2018 23:59
|
|
|
Re: New feature: individual militia
By: LatZee on Thu, 22 March 2018 10:41
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Thu, 12 April 2018 21:44
|
|
|
Re: New feature: individual militia
By: LatZee on Fri, 13 April 2018 02:50
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Fri, 13 April 2018 03:39
|
|
|
Re: New feature: individual militia
By: Flugente on Sat, 14 April 2018 17:32
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
By: Flugente on Thu, 19 April 2018 22:27
|
|
|
Re: New feature: individual militia
|
|
|
Re: New feature: individual militia
|
|
|
Individual Militia Bug Fix (DEV - 8551)
|
Goto Forum:
Current Time: Sat Nov 30 09:26:06 GMT+2 2024
Total time taken to generate the page: 0.03043 seconds
|