MagisterCultuum
Great Sage
I'm pretty sure it is possible.
The % chance seems like it should use use an pyPerTurn effect, which would actually be promotion dependent rather than unit specific.
It would probably make sense to check in CvEventManager and call the same effect if a unit tries to enter a tile with such a unit (checking similar to how treants work)
Hmmm...for added range/damage, how about making the unit gain free xp, and basing the range and damage amounts depend on its xp? This would require python of course, with the exact range/damage amounts hardcoded. You could also have the pyPerTurn effect look at its amount of xp for the chance of going off, combined with a random number generator.
You could also make these units gain free promotions (one promotion could randomly give another, py effect could add them, or you could just make this line of promotions the only ones available to a new unitcombat_trap) which might be able to let you make the damage spell itself not rely on python at all. Promotions can change the amount of spell damage a caster can do, but not range (I really think Kael needs to make extension boost range, which would make your request easier)
The % chance seems like it should use use an pyPerTurn effect, which would actually be promotion dependent rather than unit specific.
It would probably make sense to check in CvEventManager and call the same effect if a unit tries to enter a tile with such a unit (checking similar to how treants work)
Hmmm...for added range/damage, how about making the unit gain free xp, and basing the range and damage amounts depend on its xp? This would require python of course, with the exact range/damage amounts hardcoded. You could also have the pyPerTurn effect look at its amount of xp for the chance of going off, combined with a random number generator.
You could also make these units gain free promotions (one promotion could randomly give another, py effect could add them, or you could just make this line of promotions the only ones available to a new unitcombat_trap) which might be able to let you make the damage spell itself not rely on python at all. Promotions can change the amount of spell damage a caster can do, but not range (I really think Kael needs to make extension boost range, which would make your request easier)