Need help making unit 'Abilities'

UT_BKC

Chieftain
Joined
Mar 30, 2009
Messages
9
I would like to attempt to do a boat making ability in my mod similar to FFH2's battering ram making ability. I would like to give the vikings an auto promotion that gives them the ability to make a national unit that is more or less a tireme (put a cap of 2 or 4 on it so it's not degenerate) if they are in a forest and along the coast (ability will be automatic for every viking melee unit).

I'm not sure how to do the ability part. Does it require coding in python?
 
Yes, it requieres python.

The only thing, which i know, how to do it, is, doing it through an improvement.
This would mean, you create a new improvement (for example "improvised shipyard"), which your units can built, but after building it, you destroy it with python and also you let a unit appear through python.

But there are 2 problems:
1) No idea, how to attach it to the coast.
2) No way (for me) to teach the AI how to use it.
 
Back
Top Bottom