Valkrionn
The Hamster King
They actually were taken out; I added them back as Citizens until I find a better way to add them.
The Monument and Elder Council are both done in Events, and in the DLL I think. I'm not really at home with either, so it's not really an option at this time.
And the percentages are fairly simple.Spoiler :
Basically, effects are divided into five categories:
- Aspected Bad effects
- Generic Bad effects
- Generic Good effects
- Aspected Good effects
- Aspected Special effects
It rolls a 1d100 (a number between 1 and 100, essentially), and adds the number of the relevant mana you have to it, and this number then determines what you get:
So each mana makes good results more likely by moving up the scale; having 20 mana will ensure that you'll always get an effect, for instance. Note that the chance of getting the 'special' is the one that is increasing all the time (I might look this over; it's a fairly simplistic model, and might be too easy to game).
- 1 -> 19 - No effects whatsoever
- 20 -> 44 - Aspected Bad
- 45 -> 59 - Generic Bad
- 60 -> 74 - Generic Good
- 75 -> 99 - Aspected Good
- 100 and above - Aspected Special
Actually, really wouldn't be that hard. You have the EventTrigger require a specific buildingclass (check the monument), though this part isn't too necessary as you fire the event from python.
The only part you really need is the event option, the important part of which is:
Code:
<BuildingExtraYields>
<BuildingExtraYield>
<BuildingClass>BUILDINGCLASS_MONUMENT</BuildingClass>
<YieldType>YIELD_FOOD</YieldType>
<iExtraYield>2</iExtraYield>
</BuildingExtraYield>
</BuildingExtraYields>
Code:
iEvent = CvUtil.findInfoTypeNum(gc.getEventTriggerInfo, gc.getNumEventTriggerInfos(),'EVENTTRIGGER_MIRROR_OF_HEAVEN_ELOHIM')
triggerData = pPlayer.initTriggeredData(iEvent, True, -1, pCaster.getX(), pCaster.getY(), -1, -1, -1, -1, -1, -1)
The main drawback is now you have to click the event popup every freaking time you use the spell.

I'll look at adding the capability to spells.