This little mod implements idea by GraveEatr/Depx (see thread here: http://forums.civfanatics.com/showthread.php?t=187171).
Here is simple test mod where Stonehenge gives Secret Technology that is tradable to any civ with Mysticism. It is for Warlords only. The sources are included.
http://forums.civfanatics.com/uploads/5028/Secret_Technology_Test.zip
Changed SDK sources are enclosed by: BEGIN Wonder Secret Tech and END Wonder Secret Tech.
- Some tech is not researchable in normal way.
- Only world wonder gives this specific tech so only one civ can obtain it.
- This tech is tradable to other civs that already know prerequisite techs (licencing).
- Tech has significant cost even if it is not researchable so AI will not trade it cheep.
- After tech is traded it is no longer secret: receiver can freely trade it to third parties.
- Add new tag <FreeSpecificTech> to <BuildingInfo> (in CIV4BuildingsSchema.xml) and implement its logic in SDK.
- Change logic of tag: <bDisable> in <TechInfo> so it disables only research and but tech trading is still possible.
- New tag <FreeSpecificTech> is not mandatory.
- It works for any building type: i.e. world/national wonders, but also for regular buildings
- It works for any tech in tree.
- AI was updated too so it recognizes benefits of wonder/building with this tag and builds it if possible.
Here is simple test mod where Stonehenge gives Secret Technology that is tradable to any civ with Mysticism. It is for Warlords only. The sources are included.
http://forums.civfanatics.com/uploads/5028/Secret_Technology_Test.zip
Changed SDK sources are enclosed by: BEGIN Wonder Secret Tech and END Wonder Secret Tech.