1. We have added the ability to collapse/expand forum categories and widgets on forum home.
    Dismiss Notice
  2. Photobucket has changed its policy concerning hotlinking images and now requires an account with a $399.00 annual fee to allow hotlink. More information is available at: this link.
    Dismiss Notice
  3. All Civ avatars are brought back and available for selection in the Avatar Gallery! There are 945 avatars total.
    Dismiss Notice
  4. To make the site more secure, we have installed SSL certificates and enabled HTTPS for both the main site and forums.
    Dismiss Notice
  5. Civ6 is released! Order now! (Amazon US | Amazon UK | Amazon CA | Amazon DE | Amazon FR)
    Dismiss Notice
  6. Dismiss Notice
  7. Forum account upgrades are available for ad-free browsing.
    Dismiss Notice

how to start golden age after certain tech discovered

Discussion in 'Civ5 - Creation & Customization' started by starter, Dec 22, 2011.

  1. starter

    starter Chieftain

    Dec 22, 2011
    Hey all, I am a naive learner on civ5 modding; and I want to write a mod where certain civilization could start a golden age when certain tech is discovered. However, my code doesn't work for some reasons.:confused: Hope I can get some suggestions from you.

    For example, I want Isabella start a default-length golden age when Spain finds Archery. And here is my Lua script.
    Thank you for your help!!!

    P.S. Perhaps as you noticed, I don't know how to find playerID given a teamID, and that's why I used a for sentence. Is there any function I can use to directly get player ID from a team? Thank you~

    Moderator Action: Moved to the main forum.
    Because the tutorials subforum is only for tutorials ;).

Share This Page