Unit made from a specific resource

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
Post Reply
fomalhaut
Posts: 36
Joined: Thu Feb 13, 2014 8:24 am
Location: Japan

Unit made from a specific resource

Post by fomalhaut »

Is it possible?
I don't know how to define these units in ruleset file (ver2.5).
Or, can't we associate units and resources directly ?
sveinung
Elite
Posts: 548
Joined: Wed Feb 20, 2013 4:50 pm

Re: Unit made from a specific resource

Post by sveinung »

fomalhaut wrote:Or, can't we associate units and resources directly ?
I don't think so. It is possible to require a resource via a requirement vector (Resource). Unit build requirements is't a requirement vector. You can do it indirectly. A building type's build requirements is a requirement vector. A unit type's build requirements can include a building (impr_req).
fomalhaut
Posts: 36
Joined: Thu Feb 13, 2014 8:24 am
Location: Japan

Re: Unit made from a specific resource

Post by fomalhaut »

I see. Thanks a lot.
But I want to make such Civ3-like units without any building.
I suggest adding a direct association of them.
User avatar
GriffonSpade
Elite
Posts: 578
Joined: Mon Apr 29, 2013 4:41 pm

Re: Unit made from a specific resource

Post by GriffonSpade »

fomalhaut wrote:I see. Thanks a lot.
But I want to make such Civ3-like units without any building.
I suggest adding a direct association of them.
Such a thing is easier said than done. It will likely take several other features to be implemented before it can be done. Ultimately it will require units to be limited by event flags.
Post Reply