Not quite, but say after building 15 units of a certain type you receive a GG, which you could throw into your stack (presumably) meant for a war of aggression.
depending on how much you want to put weight into a certain era or segment, it could be 25 units of a certain type, like gunpowder for france, mechanized for germany, naval for britain, and so on and so forth.
this keeps a production-heavy civ like germany from being able to spam GG's. at least not until industrialism, coal, oil & panzers.
That request sounds like a bit of a tall order. Like a new game rule, but I suppose it could be scripted in Python. If someone prompts med about this at a later date I could actually look into it. (It's one unit type per civilization, some required number and then some historical Great General, right? This actually sounds like a Quest type "random" event to me - build this many units of that type and get this unit for free, right?)I'd like to have something like that, but I really don't know how to program it.
Someone could help me, please ?
It's one unit type per civilization, some required number and then some historical Great General, right?
This actually sounds like a Quest type "random" event to me - build this many units of that type and get this unit for free, right?)
Grab PyScenario (http://forums.civfanatics.com/showthread.php?t=364719) and try something like:
Trigger().player(7).heads(20,29).units(-1,121).once()
(no name for event; if a civ is Rome (7th civ); if a civ got 20 Praetorians (29th unit); it gets a Great General (unit no. 121); event fires once).
I'm not sure where the GG is going to spawn but the event should work nevertheless (I don't want to make it spawn in Rome because it may cause reduce area where units are count to Rome itself). Try it and make it better. GL&HF (If you need numbers of units, etc. check http://civ4bug.sourceforge.net/PythonAPI/index.html , if you need numbers of civs- it's different in RFC- Egypt is 0 and it's in appearing order so Greece is 4, Persia 5, Carthage 6, Rome 7...).
LuKo said:
Do you mean a PyScenario tutorial or a Python tutorial? Look in my signature for the latter. LuKo already posted the link to the PyScenario documentation, which includes a tutorial.If someone can point me in the direction of a Python tutorial........... I have nothing to do for two weeks until I move as it is. Might as well give back
There are many things I should do.You should write a guide how properly use different areas in one trigger because as far as I remember it varies between commands BTW: When you are going back home?
This Trigger seems to be "valid" but not do anything because the first argument in the units() method should be a tuple and not a integer/None. But, I guess it would make sense if a None value would always pick the player's capital as the target plot, not? Please remind me of this feature once I get back into development on PyScenario!Trigger().player(7).heads(20,29).units(-1,121).once()