Herostratus
Grim Harbinger of Things to Come
- Joined
- Jul 24, 2009
- Messages
- 116
OK, so I've figured out how to add a unit to Civ4
...but there's an effect I was shooting for that I can't figure out how to achieve.
Essentially, I want to add some "wonder units" that a civ gets for building certain wonders. The first one I'm working on is the Crusader, a buffed-up version of the Swordsman with a few free promotions, which comes with Hagia Sophia.
What I can't figure out is
#1 - whether it's possible for the Crusader to simply "spawn" once the Hagia Sophia is built,
and if not, and if the unit has to be built rather than spawned,
#2 - how to enforce a build limit on the Crusader unit, like the missionaries', only ideally just 1 instead of 3.
Judging from previous threads, it looks like #2 would have to involve Python, and I'd prefer to avoid that. Is there another way?
I also can't rely on custom events to achieve #1 because I play my mod in multiplayer, and we have to turn off random events or else we get OOS errors.
I am willing to be flexible about how all this turns out--in Civ 2, our wonder units *were* dependent on events, were spawned rather than built, and could not be replaced if they were destroyed. Now, I'd be content to allow players to "rebuild" a lost wonder unit, provided that ONLY that player could build them, and provided that the player could not build tons of them.
Thanks for whatever feedback you can provide. Please remember, I am still a beginning modder

Essentially, I want to add some "wonder units" that a civ gets for building certain wonders. The first one I'm working on is the Crusader, a buffed-up version of the Swordsman with a few free promotions, which comes with Hagia Sophia.
What I can't figure out is
#1 - whether it's possible for the Crusader to simply "spawn" once the Hagia Sophia is built,
and if not, and if the unit has to be built rather than spawned,
#2 - how to enforce a build limit on the Crusader unit, like the missionaries', only ideally just 1 instead of 3.
Judging from previous threads, it looks like #2 would have to involve Python, and I'd prefer to avoid that. Is there another way?
I also can't rely on custom events to achieve #1 because I play my mod in multiplayer, and we have to turn off random events or else we get OOS errors.
I am willing to be flexible about how all this turns out--in Civ 2, our wonder units *were* dependent on events, were spawned rather than built, and could not be replaced if they were destroyed. Now, I'd be content to allow players to "rebuild" a lost wonder unit, provided that ONLY that player could build them, and provided that the player could not build tons of them.
Thanks for whatever feedback you can provide. Please remember, I am still a beginning modder
