A_Hamster
Small Furry Animal
- Joined
- Dec 20, 2007
- Messages
- 627
Thank you, esvath, and thanks, xienwolf. It was the UnitCombat that was a problem. I deduced that it should add a promotion based on the various spells I studied, but when I experimented, I had forgotten the unitcombat. So even though the test was using existing promotions, and none of my own, the experiment failed since the caster was an Arcane unit and the target was a Recon unit, and the promotions I used are legal only for Melee, Disciple, and Animal units. Now that I'm at home and can do some quick editing, I've tested it with legal targets and it works! One spell that gives the target three promotions! (I'll have to make the new promotions that I originally intended, but now that I know it's possible I can do that. There did not seem any point before.)It adds a promotion to your unit. So in your example, it will grant PROMOTION_BLUR to any valid units being targeted by the spell.
Have you set which unit the promotion will apply? It is in promotioninfo. You should specify PROMOTION_SLAYER is valid to UNIT_MELEE (or was it UNITCOMBAT?) Otherwise, Civ4 will see that NO UNIT is valid to get the promotion. Thus, your promotion will not be applied to all units.
@xienwolf: During my lunch break I read some of the Python tutorials. Conceptually it isn't completely alien (although the computer language taught when I was in high school was BASIC). I'll do more reading, and give it a go when my weekend comes around.
Actually, if anyone would like to express an opinion on how much this world spell should produce, let me tell you what I intend. This world spell will produce a small amount of culture (at least 10 to pop the FC) and a moderate amount of beakers per the owning civilizations' city. There will be no tech requirement so the player can cast it as soon as the first city is founded. If one uses 200 beakers as the number, that's a big deal with one city, but mid-late game when one is going for Pass through the Ether, 200 beakers times 20 cities barely makes a dent. Mind, I'm really looking at this as a early-mid game world spell, so 5 cities for 1000 beakers would get the caster 98% of Elementalism (if playing at Noble).
Regardless of what the final number of beakers is, I'm guessing I could use Legends as a base, merely drop the Culture number from 300 to 10, and then duplicate that same function for Beakers. I don't know if the beakers would have to be totaled and added to whatever game function keeps track of research progress, or if the game engine will do that automatically.