I'm currently working on the events for my next scenario and I had this nice idea for an event.
Here's the backgroung: In the Byzantine Empire with the discovery of Canons, Canons were installed on the massive, if not to say huge and almost 1000 years old, City Walls of Constantinople.
The power of the canons was unimaginable, bullets of up to 1000kg could be fired by the largest and they could cause tremendous damage to any attacker. However, they was a small problem with them: They caused even more damage to the Walls of Constantinople.
The walls couldn't stand the force exerted upon them when the canons were fired and had to be expensively repair after every battle.
Here is what I have done to reflect this:
I created a special unit for the Byzantines that cannot leave Constantinople.
The idea is that every time a unit is destroyed by this special unit there is a penalty on the Byzantines who will loose money.
That's the event for this:
@IF
UNITKILLED
unit=ANYUNIT
attacker=Byzantines
defender=ANYBODY
THEN
TEXT
By using the powerful canons of Constantinople against the enemies not only
damage is caused to the enemy but also to the City Walls which were not build
to withstand such force. They have to be expensively repaired.
ENDTEXT
CHANGEMONEY
receiver=triggerattacker
amount=-80
@ENDIF
However, when testing this I came across some problems.
First of all there does not seem to be an eventstructure for ANTUNIT or something like that. Only for specified units.
Furthermore, I can only make an event that will be triggered by any Byzantine Unit, which is really not what I had in mind.
I would need to specify that this can only be triggered by the special unit I made.
Now I kind of have a problem...
I could specify that this will only trigger when certain units are destroyed. But that would be rather tiresome because I have about 55-60 new units in the scenario and it would use up to much event space.
But even if I did that it would still be triggered by every Byzantine unit that destroys another unit. And that would get very much on the Byzantine treasury...
Besides of being totally historicaly inaccurate...
So, does anybody have ideas of how to get around this? Please...
I would appreciate any ideas that might help my solve this.
Here's the backgroung: In the Byzantine Empire with the discovery of Canons, Canons were installed on the massive, if not to say huge and almost 1000 years old, City Walls of Constantinople.
The power of the canons was unimaginable, bullets of up to 1000kg could be fired by the largest and they could cause tremendous damage to any attacker. However, they was a small problem with them: They caused even more damage to the Walls of Constantinople.
The walls couldn't stand the force exerted upon them when the canons were fired and had to be expensively repair after every battle.
Here is what I have done to reflect this:
I created a special unit for the Byzantines that cannot leave Constantinople.
The idea is that every time a unit is destroyed by this special unit there is a penalty on the Byzantines who will loose money.
That's the event for this:
@IF
UNITKILLED
unit=ANYUNIT
attacker=Byzantines
defender=ANYBODY
THEN
TEXT
By using the powerful canons of Constantinople against the enemies not only
damage is caused to the enemy but also to the City Walls which were not build
to withstand such force. They have to be expensively repaired.
ENDTEXT
CHANGEMONEY
receiver=triggerattacker
amount=-80
@ENDIF
However, when testing this I came across some problems.
First of all there does not seem to be an eventstructure for ANTUNIT or something like that. Only for specified units.
Furthermore, I can only make an event that will be triggered by any Byzantine Unit, which is really not what I had in mind.
I would need to specify that this can only be triggered by the special unit I made.
Now I kind of have a problem...
I could specify that this will only trigger when certain units are destroyed. But that would be rather tiresome because I have about 55-60 new units in the scenario and it would use up to much event space.
But even if I did that it would still be triggered by every Byzantine unit that destroys another unit. And that would get very much on the Byzantine treasury...
Besides of being totally historicaly inaccurate...
So, does anybody have ideas of how to get around this? Please...
I would appreciate any ideas that might help my solve this.
Comment