Is it possible to create new EffectTypes?

Mettpawwz

Chieftain
Joined
Feb 4, 2017
Messages
73
For example, the Theocracy government sets land military units to be purchaseable faith (the EffectType is EFFECT_ENABLE_UNIT_FAITH_PURCHASE) but there is no equivalent EffectType for setting a unit to be purchaseable with gold (for example, making missionaries purchaseable with gold as the result of a government bonus or policy).

Does anyone know if this can be done?
 
I'm fairly sure that we can't make new effect types.

However it's plausible that what you described can be done using Lua, though it may be tricky.

It's also possible that there's some way it can be done without Lua, possibly involving another unit with the same name, flagged MustPurchase, yield type gold. However, off the top of my head I'm not sure how to link it to a policy and there may be an issue with the price scaling not staying in step between the two.
 
I was kind of worried it would probably require Lua, but oh well, it's probably a good idea to learn Lua modding anyway in order to have more flexibility in the future (I have a pretty ambicious overhaul mod in the works).

Are there any Lua resources for beginners, particularly in the context of modding Civ 6? I wouldn't really even know where to begin.
 
I'm okay with Python and I've done some web design in the past, plus some R for statistics. Not a professional but I think I can get my head around Lua when I have the time. Thanks Infixo!
 
Back
Top Bottom