Announcement

Collapse
No announcement yet.

detecting the current player research id

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • detecting the current player research id

    Greetings

    I would like to know if there's a way to identify the index of the current player's research with the string
    player.researching and if it's possible with the correct syntax (in a 'CreateWonder' Event) to make a darwin's journey effect: 2 sciences granted,the one you were searching and the next you choose.

    here is a solution in the attached file .I don't know if my solution works for the AI but for the human player that's good except that after the first science granted you must click either a city or an army to get the second one granted.I use a begin turn reinitialization and that's why i'm searching a more direct way 'cause the beginturn way re-add a turn of production in all the cities(only for the human player).

    Please ...Help!
    Attached Files
    I need your lights to think clearly.

  • #2
    The right file is here.
    excuse the newbie i am in posting threads.
    Attached Files
    I need your lights to think clearly.

    Comment


    • #3
      /me chuckles.

      I don't think we need these workarounds now we have the source code.

      I'll knock up a function that returns the index of the currently researched science, for a given player, and post it this afternoon

      Comment

      Working...
      X