Add PrereqPolicy and LuaReq tags to Buildings or other tables - how to do it

Pazyryk

Deity
Joined
Jun 13, 2008
Messages
3,584
If you are like me, you don't go to the Tutorials subforum very often. So I thought I'd post this here for active modders.

PrereqPolicy is pretty self-explanatory. This tag doesn't exist for Buildings, Units, and so forth, but it's not too hard to add it and make it work through SQL and Lua.

LuaReq is like PythonReq for those of you who used to mod FFH. You can add your own conditional as a short Lua function. If the function returns true, then the building can be built. If the function returns false, then the building cannot be built.

Follow this link to my tutorial if you want to know how.
 
Back
Top Bottom