raystuttgart
Civ4Col Modder
Hi guys,
I implemented this small feature, simply because I had this idea today.
(It was just for fun, because I had a bit of time today.)
---------
Used Ships
(Available through DLL-Diplo-Dialogue with King)
From time to time, you may ask the King to help you find cheap used ships - similar to you being able to ask for troops.
(You actively have to ask him to do so, it is not an automatic event that pops up.)
These Ships are incredibly good bargains but you can not chose which Type of Ship you want.
You either take what you get offered or leave it be. Then have to wait until another offer gets available again.
If you accept his offer the Ship will wait ready for you in Europe.
(But it is damaged and you have to bring it to one of your Cities in the New World to fully repair its "Negative Promotion".)
---------
Most of the time the King will offer you Trade Ships. (e.g. Fluyt)
But from time to time he will also offer you a War Ship. (e.g. Ship of the Line)
So it is really worth checking it from time to time.
---------
Just for clarification:
The negative Promotion it comes with can only be repaired in one of your Cities.
(You simply need to have it heal a bit and then it is ready to go again just as new.)
---------
Pro:
Much cheaper than if you buy them new.
Also the new Ship already comes with a bit of XP.
(Small Cons)
You are not free to decide which Type of Ship you get offered.
They come damaged and with negative Promotions that have to be healed first.
Otherwise:
There are no negative consequences attached to asking the King for these Ships.
---------
If you ask him and he helps you find an offer, a timer will start no matter if you accept or decline.
(I wanted to prevent that this feature might become an exploit. So you may only buy these Used Ships in average every 30 turns.)
The price you get offered also depends on his Attitude towards you.
If he likes you, you get better deals and vice versa.
Once you start War of Independence, the feature cannot be used anymore of course.
---------
Explanation:
It creates some incentive to sometimes buy Ships you normally would not buy.
(Simply because from the price offer you get is so good and the Ship already having a bit of XP making it attractive.)
Also especially in the early game it creates an incentive to actively interact with your King.
(You really have to actively ask for these offers, similar to requesting troops.)
----------
XML settings to customize:
----------
Summary:
It is just for a bit of flavour and diversity.
So from time to time check out the offers of your King.
-----------
Comment for new modders:
Stuff like this is actually pretty simple once you understand how DLL, Python and XML are applied together in Civ4Col modding.
When I tried something like this the first time (for Native Mercenaries) it took me 3 to 4 days to figure out how it worked and finish it.
Now I need about 4 hours in average for a new Dialogue like this.
(About 2 hours more maybe if I need to figure out good AI logic.)
------------
Reminder to myself:
Still have to write a small piece of AI logic to have AI use this feature as well.
(Most likely it will get most of its Ships like this in early game, in late game however not use it anymore at all.)
Edit:
AI logic is now implemented as well.
(see post below)
I implemented this small feature, simply because I had this idea today.
(It was just for fun, because I had a bit of time today.)
---------
Used Ships
(Available through DLL-Diplo-Dialogue with King)
From time to time, you may ask the King to help you find cheap used ships - similar to you being able to ask for troops.
(You actively have to ask him to do so, it is not an automatic event that pops up.)
These Ships are incredibly good bargains but you can not chose which Type of Ship you want.
You either take what you get offered or leave it be. Then have to wait until another offer gets available again.
If you accept his offer the Ship will wait ready for you in Europe.
(But it is damaged and you have to bring it to one of your Cities in the New World to fully repair its "Negative Promotion".)
---------
Most of the time the King will offer you Trade Ships. (e.g. Fluyt)
But from time to time he will also offer you a War Ship. (e.g. Ship of the Line)
So it is really worth checking it from time to time.
---------
Just for clarification:
The negative Promotion it comes with can only be repaired in one of your Cities.
(You simply need to have it heal a bit and then it is ready to go again just as new.)
---------
Pro:
Much cheaper than if you buy them new.
Also the new Ship already comes with a bit of XP.
(Small Cons)
You are not free to decide which Type of Ship you get offered.
They come damaged and with negative Promotions that have to be healed first.
Otherwise:
There are no negative consequences attached to asking the King for these Ships.
---------
If you ask him and he helps you find an offer, a timer will start no matter if you accept or decline.
(I wanted to prevent that this feature might become an exploit. So you may only buy these Used Ships in average every 30 turns.)
The price you get offered also depends on his Attitude towards you.
If he likes you, you get better deals and vice versa.
Once you start War of Independence, the feature cannot be used anymore of course.
---------
Explanation:
It creates some incentive to sometimes buy Ships you normally would not buy.
(Simply because from the price offer you get is so good and the Ship already having a bit of XP making it attractive.)
Also especially in the early game it creates an incentive to actively interact with your King.
(You really have to actively ask for these offers, similar to requesting troops.)
----------
XML settings to customize:
Spoiler :
Code:
<!-- USED SHIPS -->
<Define>
<DefineName>FIRST_TURN_USED_SHIPS_AVAILABLE</DefineName>
<iDefineIntVal>10</iDefineIntVal>
</Define>
<Define>
<DefineName>USED_SHIP_TIMER</DefineName>
<iDefineIntVal>30</iDefineIntVal>
</Define>
<Define>
<DefineName>MIN_DISCOUNT_USED_SHIP_PERCENT</DefineName>
<iDefineIntVal>20</iDefineIntVal>
</Define>
<Define>
<DefineName>MAX_DISCOUNT_USED_SHIP_PERCENT</DefineName>
<iDefineIntVal>50</iDefineIntVal>
</Define>
<Define>
<DefineName>MIN_XP_SPAWNING_USED_SHIPS</DefineName>
<iDefineIntVal>1</iDefineIntVal>
</Define>
<Define>
<DefineName>MAX_XP_SPAWNING_USED_SHIPS</DefineName>
<iDefineIntVal>3</iDefineIntVal>
</Define>
<Define>
<DefineName>MIN_DAMAGE_PERCENT_USED_SHIPS</DefineName>
<iDefineIntVal>25</iDefineIntVal>
</Define>
<Define>
<DefineName>MAX_DAMAGE_PERCENT_USED_SHIPS</DefineName>
<iDefineIntVal>75</iDefineIntVal>
</Define>
----------
Summary:
It is just for a bit of flavour and diversity.
So from time to time check out the offers of your King.
-----------
Comment for new modders:
Stuff like this is actually pretty simple once you understand how DLL, Python and XML are applied together in Civ4Col modding.
When I tried something like this the first time (for Native Mercenaries) it took me 3 to 4 days to figure out how it worked and finish it.
Now I need about 4 hours in average for a new Dialogue like this.
(About 2 hours more maybe if I need to figure out good AI logic.)
------------
Reminder to myself:
Still have to write a small piece of AI logic to have AI use this feature as well.
(Most likely it will get most of its Ships like this in early game, in late game however not use it anymore at all.)
Edit:
AI logic is now implemented as well.
(see post below)
Attachments
Last edited: