I'm working on an army for 40K and having some trouble as I'm new at this.
Here's what I'm trying to do.
A particular unit normally comes with a pistol and sword.
The whole unit can swap the pistol and sword for a rifle for free.
For every ten members of the unit, one member can swap their pistol or rifle for a machine gun (keeping the sword if they still had one), for x pts per machine gun.
So if we take the simplest example using a unit size of 10, the valid options are:
10 with rifle
OR 9 with rifle plus 1 with MG
OR 10 with pistol and sword
OR 9 with pistol and sword plus 1 with MG and sword
With a unit size of 20, the valid options would be:
20 with rifle
OR 18-19 with rifle plus 1-2 with MG
OR 20 with pistol and sword
OR 18-19 with pistol and sword plus 1-2 with MG and sword
I've been able to implement the 1 per 10 limit on MGs by creating a new unit stat (NoOfMGs) in the AUG file, an exclusion group (ExMGs) with the range of 0-@NoOfMGs, and using the unit pre-link script to set NoOfMGs for the unit.
I can also use remainders to make the number of pistols decrease when the use adds MGs to the unit.
I can also use remainders and exclusion groups to allow the user to replace pistol & sword with rifle one at a time (which is annoying for the user and leads to an illegal unit with a mix of pistol & sword and rifle). However when the user does this, the number of rifles seems to count against the number of MGs allowed so they have to reduce the number of rifles in order to add MGs.
What I would like to do and can't figure out is provide the user with a single option that they can select to choose between pistol/sword (with the MGs reducing the number of pistols but not the number of swords) or rifle for all squad members at once.
Regards & be nice to the newbie!
Here's what I'm trying to do.
A particular unit normally comes with a pistol and sword.
The whole unit can swap the pistol and sword for a rifle for free.
For every ten members of the unit, one member can swap their pistol or rifle for a machine gun (keeping the sword if they still had one), for x pts per machine gun.
So if we take the simplest example using a unit size of 10, the valid options are:
10 with rifle
OR 9 with rifle plus 1 with MG
OR 10 with pistol and sword
OR 9 with pistol and sword plus 1 with MG and sword
With a unit size of 20, the valid options would be:
20 with rifle
OR 18-19 with rifle plus 1-2 with MG
OR 20 with pistol and sword
OR 18-19 with pistol and sword plus 1-2 with MG and sword
I've been able to implement the 1 per 10 limit on MGs by creating a new unit stat (NoOfMGs) in the AUG file, an exclusion group (ExMGs) with the range of 0-@NoOfMGs, and using the unit pre-link script to set NoOfMGs for the unit.
I can also use remainders to make the number of pistols decrease when the use adds MGs to the unit.
I can also use remainders and exclusion groups to allow the user to replace pistol & sword with rifle one at a time (which is annoying for the user and leads to an illegal unit with a mix of pistol & sword and rifle). However when the user does this, the number of rifles seems to count against the number of MGs allowed so they have to reduce the number of rifles in order to add MGs.
What I would like to do and can't figure out is provide the user with a single option that they can select to choose between pistol/sword (with the MGs reducing the number of pistols but not the number of swords) or rifle for all squad members at once.
Regards & be nice to the newbie!