View Full Version : Modding question


Zeus[BTY]
Apr 20, 2007, 05:36 AM
In Civ3, I always liked the fact that you could discover new lands across the seas earlier in the game by using galleys, with a big chance of the galley disappearing into the depth of the oceans.

So I'd like to make a little mod for myself to do just that, ie allow galleys to enter ocean hexes, and have a chance of sinking when ending their turn on one.

I have no knowledge of Civ modding whatsoever, and most tutorials simply go too deep for which I don't have the time :( , so I was hoping someone could give me some pointers, specifically:

-- in what location should I place the script checking for galleys on oceans? Is there some sort of end-of-turn phase?

-- would it be possible to play the "sinking ship" animation without the fight animation usually preceding it?

-- would it be possible to make civs with a new seafaring trait, and have the above script check for that (to decrease the chance of sinking)?

-- would it be possible to have the AI try to use this too (not sure whether they did in Civ3)?

-- I'm an experienced programmer, but never did anything with Python, so a few tips and pointers how to do all this would be very welcome too :) .

BTW if something like this has already been done, please point me towards the project.

Thanks!

snipperrabbit!!
Apr 20, 2007, 04:49 PM
No need to do it. There's Primemover's events mod (http://forums.civfanatics.com/showthread.php?t=216309) doing exactly that !

primem0ver
Apr 20, 2007, 05:13 PM
Hey Zeus[BTY].

As sniperrabbit suggests, the events mod will do something similar to what you are asking.

However, the event that does "lost at sea" is meant for ships during the reinassance and only covers a region of the globe known as the "doldrums" (between 25-35 degrees north and south latitude). It seems to me that you want these ships to go to sea before mapping was perfected and should apply to ANY latitude. Currently there is no event that does this...

The good news is that my mod is very "moddable" and it would be very easy for me to create an event for you that would do what you want. (or you could do it yourself if you know how to modify xml).

snipperrabbit!!
Apr 21, 2007, 03:23 AM
Well ! I suspected I wasn't entirely right but it was obvious it could be done with your contribution.