Hello fellow warriors,
I am having a desperate problem that I just cannot get to the root of. It stems from the
trigger = { Tid'sFrustration = 10000 }
portion of the event.
I have created a new file and written a bunch of new events. They run fine when called individually (through f12) but when the trigger condition is tested in-game it freezes the game. Well, it actually stops time dead, since I can still access all the screens, give orders etc.
When I remove the trigger line, all is fine. When I leave it in, everything goes tits up. I don't think it is a syntax problem - I've even copied triggers from other events and I get the same problem.
Here is one of the events - very innocuous. With the trigger commented out, it works fine.
#########################################################################
# 49502 Establishment of Peenemunde
#########################################################################
event = {
id = 49502
country = GER
random = no
picture = automedon
trigger = { supplies = 3000 }
name = "Establish rocket test site at Peenemunde"
desc = "An important army base for the research of weapons is proposed at Peenemunde"
style = 0
date = { day = 1 month = january year = 1936 }
deathdate = { day = 30 month = december year = 1954 }
action_a = {
name = "Green light the Peenemunde project"
command = { type = money value = -250 }
command = ( type = supplies value = -3000 )
command = { type = trigger which = 49510}
}
action_b = {
name = "Hmmmm, come back later"
command = { }
}
action_c = {
name = "Nein, danke!"
command = { type = sleepevent which = 49502 }
}
}
Any ideas?
Love,
Tiddums
I am having a desperate problem that I just cannot get to the root of. It stems from the
trigger = { Tid'sFrustration = 10000 }
portion of the event.
I have created a new file and written a bunch of new events. They run fine when called individually (through f12) but when the trigger condition is tested in-game it freezes the game. Well, it actually stops time dead, since I can still access all the screens, give orders etc.
When I remove the trigger line, all is fine. When I leave it in, everything goes tits up. I don't think it is a syntax problem - I've even copied triggers from other events and I get the same problem.
Here is one of the events - very innocuous. With the trigger commented out, it works fine.
#########################################################################
# 49502 Establishment of Peenemunde
#########################################################################
event = {
id = 49502
country = GER
random = no
picture = automedon
trigger = { supplies = 3000 }
name = "Establish rocket test site at Peenemunde"
desc = "An important army base for the research of weapons is proposed at Peenemunde"
style = 0
date = { day = 1 month = january year = 1936 }
deathdate = { day = 30 month = december year = 1954 }
action_a = {
name = "Green light the Peenemunde project"
command = { type = money value = -250 }
command = ( type = supplies value = -3000 )
command = { type = trigger which = 49510}
}
action_b = {
name = "Hmmmm, come back later"
command = { }
}
action_c = {
name = "Nein, danke!"
command = { type = sleepevent which = 49502 }
}
}
Any ideas?
Love,
Tiddums