LoneTraveller
Warlord
hi, it's been a while since I have modded Civ4 so I might of forgotten some things over time.
I've been playing Civ5 for a month and I want to reproduce it's Strategic Resources (SR) 'management' but in Civ4.
Now so far, I have edited the CvPlot and CyPlot classes for accessors, modifiers and variables for the amount of SRs on a plot object.
The problem is setting the amount of SRs in a simple to use way. I was thinking of using WorldBuilder to set that amount at the same time that a player would place a resource on a selected tile. I have found a function called ''CvPlot::setBonusType(BonusTypes eNewValue)'' and I wonder how to add code that would 'launch' a prompt in WB asking for an integer and using that number for the number of SRs on that tile.
I have very very little experience with Python so I'm not sure if what I want to do is feasible.
Any constructive input is welcome
Thank you
I've been playing Civ5 for a month and I want to reproduce it's Strategic Resources (SR) 'management' but in Civ4.
Now so far, I have edited the CvPlot and CyPlot classes for accessors, modifiers and variables for the amount of SRs on a plot object.
The problem is setting the amount of SRs in a simple to use way. I was thinking of using WorldBuilder to set that amount at the same time that a player would place a resource on a selected tile. I have found a function called ''CvPlot::setBonusType(BonusTypes eNewValue)'' and I wonder how to add code that would 'launch' a prompt in WB asking for an integer and using that number for the number of SRs on that tile.
I have very very little experience with Python so I'm not sure if what I want to do is feasible.
Any constructive input is welcome

Thank you