Resource generated just from building

Craig_Sutter

Deity
Joined
Aug 13, 2002
Messages
2,773
Location
Calgary, Canada
Has anyone created a resource that is not generated on map but is created by a building?

I've done some searching, but most buildings I've seen simply generate already existing onmap resources.

Since the resource will only come from a building, is it possible to ignore the lua involved with generating resources and still have the resource be usable?

My plan is to have a religious based building, "Berserker Hall", generate a resource, "fanaticism", which will be required for the "Berserker" unit. I will do something similar with "Chapter House" and "Crusader", with a different resource "fervor".

On the other hand, if anyone knows how to make a specific unit buildable depending on certain beliefs I'd be open to that as well.
 
Yeah, make a resource, and have a building generate it like a Recycling Center. Nothing else is really needed to be done.

You can make it a strategic or luxury - your choice.

make a specific unit buildable depending on certain beliefs

Nope, not possible without LUA.
 
For that unit with beliefs thing...you could do it, but it requires two steps:

1. Make the building require the belief (this is possible, see pagodas)
2. Make the unit require the building (again, possible)

And for the above post...creating a resource isn't very hard at all. Getting it to appear on the map sucks, though.
 
For that unit with beliefs thing...you could do it, but it requires two steps:

1. Make the building require the belief (this is possible, see pagodas)
2. Make the unit require the building (again, possible)

And for the above post...creating a resource isn't very hard at all. Getting it to appear on the map sucks, though.

The idea of Fanaticism and Fervor as substance-like resources that can be found the same way gold and oil are...somehow strikes me as wrong. Maybe adding Fervor and Fanaticism as new stats that can be gained (the way Faith and Culture already are) would work better; I've heard of modpacks for older versions of the game that add new stats that way.
 
No odder than using faith to do so as per "holy warrior" belief.

The resource would be building specific and not tradable (if I were to carry the idea further). It would not be on the map (which I don't think I have the skill to do anyhow.)

I'd use some sort of religious symbol for the icon.

Anyhow, that's down the road and a big "maybe". :)
 
if you want the resource to be used for units you need to class it as modern or strategic I don't remember exactly, if you need I can look in my mod to see how I did it. With luxury resources it doesn't work sometime.

Adding a new resource generated from building is easy with Gods and Kings, it's only a few lines of xml.
Again if you need help just ask.
 
Back
Top Bottom