@wc_sumpton
Hi Wc,
Thanks a lot for your time!
I hope im not asking too much but i still cant figure the tech dice system.
I understand that i have to turn on low luck for tech.
We use 6 diceSides so 20 ipc cost should give 6 dices.
I first tried this:
<attachmentList>
<attachment name="techAttachment" attachTo="Japanese" javaClass="TechAttachment" type="player">
<cost resource="PUs" quantity="20"/>
<result resourceOrUnit="techTokens" quantity="6"/>
<option name="resourceCount" value="6"/>
</attachment>
To be honest i tried to copy it straight from the production rule for "normal" units.
But this doesnt work, the engine doesnt recognize the property definition for the option "resource Count"
Im kinda lost now, do you know how to implement this? We basically want 20 IPC to give the player enough tech dice for a guaranteed unlock.
Another question:
We want to create an unit called the Flying Boat, which is basically an airplane but the airplane:
Can land only on water, not on land
move through hostile sea zones, ignoring enemy ships
be able to move after fighting in a battle (if they still have range left over)
be able to attack land territories
So far i figured out how to make planes "land" on sea (putting their carriercost at 0)
<attachment name="unitAttachment" attachTo="Flying_Boat" javaClass="UnitAttachment" type="unitType">
<option name="isAir" value="true"/>
<option name="attack" value="6"/>
<option name="defense" value="4"/>
<option name="movement" value="4"/>
<option name="carrierCost" value="0"/>
Now obviously this is still considered a air unit by the engine, it can move through hostile seazones, it can move after fighting in a battle and it can attack land territories.
The problem is that it can obviously still land on land, which we dont want.
but do you know if its theoretically possible to make the unit unable to land on land?
~Cheers!