Honch
04-26-2006, 06:24 PM
I have decided to take a crack at having the atomic bomb incorporated into the game by use of a series of event scripts added to the popup script:
{
#NAME= US Demonstrates the Atomic Bomb in North Africa
#POPUP= US Demonstrates the Atomic Bomb in North Africa
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/01/01
}
{
#NAME= US Drops Atomic Bomb 0n Hamburg
#POPUP= US Drops an Atomic Bomb on Hamburg
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/03/01
}
{
#NAME= US Drops Atomic Bomb On Kiel
#POPUP= US Drops an Atomic Bomb on Kiel
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/06/01
}
{
#NAME= US Drops Atomic Bomb on Munich
#POPUP= US Drops an Atomic Bomb on Munich
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/09/01
}
{
#NAME= Hitler Demands an Atomic Bomb
#POPUP= Hitler Demands an Atomic Bomb from his Scientists
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 5
#TRIGGER= 100
#DATE= 1945/11/01
}
{
#NAME= Germany Tests the Atomic Bomb
#POPUP= Germany Succesfully Tests an Atomic Bomb, Allies Agree to a Ceasfire
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 5
#TRIGGER= 100
#DATE= 1947/01/01
}
{
#NAME= US Threatens Berlin with the Atomic Bomb
#POPUP= US Threatens Berlin with the Atomic Bomb
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/12/01
}
These will all pop up accordingly but I need help designing scripts as follows to interact with the above:
1. A script to reduce Germany's MPPs by 50% from the date that Hitler Demands the Bomb script takes effect. (Cost of transferring resources to the program)
2. A script that will change the contents of a map tile when each of the US Drops the Bomb scripts takes effect.
3. A script giving a chance for an outright Italian, Romanian, Bulgarian or Hungarian surrender once US demonstrates the bomb.
Anyone help?
{
#NAME= US Demonstrates the Atomic Bomb in North Africa
#POPUP= US Demonstrates the Atomic Bomb in North Africa
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/01/01
}
{
#NAME= US Drops Atomic Bomb 0n Hamburg
#POPUP= US Drops an Atomic Bomb on Hamburg
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/03/01
}
{
#NAME= US Drops Atomic Bomb On Kiel
#POPUP= US Drops an Atomic Bomb on Kiel
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/06/01
}
{
#NAME= US Drops Atomic Bomb on Munich
#POPUP= US Drops an Atomic Bomb on Munich
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/09/01
}
{
#NAME= Hitler Demands an Atomic Bomb
#POPUP= Hitler Demands an Atomic Bomb from his Scientists
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 5
#TRIGGER= 100
#DATE= 1945/11/01
}
{
#NAME= Germany Tests the Atomic Bomb
#POPUP= Germany Succesfully Tests an Atomic Bomb, Allies Agree to a Ceasfire
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 5
#TRIGGER= 100
#DATE= 1947/01/01
}
{
#NAME= US Threatens Berlin with the Atomic Bomb
#POPUP= US Threatens Berlin with the Atomic Bomb
#FLAG= 1
#TYPE= 0
#COUNTRY_ID= 3
#TRIGGER= 100
#DATE= 1946/12/01
}
These will all pop up accordingly but I need help designing scripts as follows to interact with the above:
1. A script to reduce Germany's MPPs by 50% from the date that Hitler Demands the Bomb script takes effect. (Cost of transferring resources to the program)
2. A script that will change the contents of a map tile when each of the US Drops the Bomb scripts takes effect.
3. A script giving a chance for an outright Italian, Romanian, Bulgarian or Hungarian surrender once US demonstrates the bomb.
Anyone help?