MikeLynch
Just a Baker Street Muse
Background: in my mod, when a nation builds the Great Library, a unique unit (Alexander the Great) spawns in that nation's capital.
So I'm playing my modded Test of Time, King level, and as is customary at that level, there's a race to complete certain Wonders. I commence the Great Library after noticing that one or two other nations have started it. On the next turn, the French *change projects* from something to Great Library, and immediately after I get that message, I get my custom event message saying "The construction of the Great Library gives its owner the unique Alexander the Great unit."
My immediate reaction is Ack!, No!, and How?, but then I got to thinking. I remembered seeing an erroneous Alex message before, in bizarre circumstances I can't recall, but it hadn't happened for a while. So I bought the Great Library during that turn -- and got it the next turn, complete with the message "The French have abandoned their great project: the Great Library."
The horrific part? I did not get Alexander. It is as if by merely beginning the GLib, the French got him. And I'm not sure if they did, b/c I foolishly did not bother to cheat at the time and see where he was; I just checked and he's not apparently there, but he could have been lost at sea or killed (there's supposed to be a UnitKilled message for Alex too, but I'm not sure of anything anymore).
Here's my events.txt code -- am I doing something wrong?
So I'm playing my modded Test of Time, King level, and as is customary at that level, there's a race to complete certain Wonders. I commence the Great Library after noticing that one or two other nations have started it. On the next turn, the French *change projects* from something to Great Library, and immediately after I get that message, I get my custom event message saying "The construction of the Great Library gives its owner the unique Alexander the Great unit."
My immediate reaction is Ack!, No!, and How?, but then I got to thinking. I remembered seeing an erroneous Alex message before, in bizarre circumstances I can't recall, but it hadn't happened for a while. So I bought the Great Library during that turn -- and got it the next turn, complete with the message "The French have abandoned their great project: the Great Library."
The horrific part? I did not get Alexander. It is as if by merely beginning the GLib, the French got him. And I'm not sure if they did, b/c I foolishly did not bother to cheat at the time and see where he was; I just checked and he's not apparently there, but he could have been lost at sea or killed (there's supposed to be a UnitKilled message for Alex too, but I'm not sure of anything anymore).
Here's my events.txt code -- am I doing something wrong?
Code:
@IF
CITYPRODUCTION
builder=Anybody
improvement=44
@THEN
JUSTONCE
CreateUnit
owner=TriggerReceiver
unit=Alexander the Great
veteran=No
homecity=none
count=1
InCapital
locations
endlocations
TEXT
The construction of the Great Library gives
its owner the unique Alexander the Great unit.
endtext
@ENDIF