Announcement

Collapse
No announcement yet.

Poor Get Richer: a new mod for CtP2

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

  • #16
    A few of these 'missing functions' are a pain to sort out.

    I struggled with the missing 'what am I researching?' function for a while... but i figured out the basic implementation, just need to sort out a few things...

    effectively... it works like this...

    you need to keep track of how much research each government does... (culmulative sum of GetProjectedScience, subtracting the cost of the advance, when you gain the advance)

    each turn you set a flag, turn off the science picker with DisableChooseResearch and use SetScience(player[x],999999);

    when this happens, you check for the flag in the GrantAdvance event record what type the advance was (through checking the value[0].value) remove the research, then reset the research, science amountand flag, then EnableChooseResearch...

    its pretty complex, and I haven't implemented the culmulative sum bit (although I know that works... however, I have some code reporting at the start of turn, what index the tech I am researching is...) I have to test it with the AI too... but I am very confident.



    MrBaggins

    Comment


    • #17
      I posted yet another 'concepts for discussion' thread here.

      Comment

      Working...
      X