ok, here is the deal, I know nothing about Lua, and I have a brain injury (not joking) and learning it is VERY hard. XML is a cakewalk. I know what I need to do in XML to make my mod work, but without a script that removes the embarkation promotion, the mod is dead in the water ( no pun intended). If there is anyone that knows Lua that could whip up this mod for me, I would be eternally grateful. I have tracked down what I believe are all the major pieces, and I just need someone that know how to do the lua script to make it happen.
Is there any kind soul out there that can help?
The basics:
I just need the xml for the helicopter to have an added line that adds the sea domain, then it can travel the ocean as a helicopter should.
all you need to do is this:
<Domain>DOMAIN_SEA</Domain>
<Domain>DOMAIN_LAND</Domain>
its that simple.
then the problem is, it wants to embark once you get embarkation.
I found this line of code, but I have no clue how to implement it.:
pUnit:SetHasPromotion(iPromotion, true/false)
found on this thread:
http://forums.2kgames.com/showthread.php?206566-Removing-Promotions-From-Units
so, can anyone help me with this? I have been trying to do this for a while now, with no success. Any and all help would be greatly appreciated.
Is there any kind soul out there that can help?
The basics:
I just need the xml for the helicopter to have an added line that adds the sea domain, then it can travel the ocean as a helicopter should.
all you need to do is this:
<Domain>DOMAIN_SEA</Domain>
<Domain>DOMAIN_LAND</Domain>
its that simple.
then the problem is, it wants to embark once you get embarkation.
I found this line of code, but I have no clue how to implement it.:
pUnit:SetHasPromotion(iPromotion, true/false)
found on this thread:
http://forums.2kgames.com/showthread.php?206566-Removing-Promotions-From-Units
so, can anyone help me with this? I have been trying to do this for a while now, with no success. Any and all help would be greatly appreciated.