Jump to content

popup.txt


Recommended Posts

Why isnt this working? If Japs DOW on USA AND are near hawaii at same time...

; Pearl Harbor:

; Images - US National Archives (Public Domain)

{

#NAME= Pearl Harbor

#POPUP= Japan attacks Pearl Harbor

#IMAGE= pearl_harbour_3.bmp

#SOUND= pearl_harbour.wav

#FLAG= 1

#TYPE= 0

#AI= 0

#GV= 1[1,100]

#LINK= 0[0]

#LEVEL= 0

#COUNTRY_ID= 3

#TRIGGER= 100

#DISPLAY_ORDER= 0

#DATE= 1939/01/01

; USA is allied

#VARIABLE_CONDITION= 3 [2] [100] [0]

; Hawaii - Japs within 7 hexes of Hawaii

#CONDITION_POSITION= 99,22 [0,7] [1,50] [1] [2]

}

Link to comment
Share on other sites

Change the last bit to:

#CONDITION_POSITION= 99,22 [7,7] [1,1] [1] [2]

Should work fine then. What you currently have is the computer randomly looking for between 1 and 50 Jap units between 0 and 7 tiles away. E.g. on one turn it might want 50 units on hawaii and the next it needs 27 units within 3 tiles etc. By limiting range to [7,7] means that the computer will always be checking all tiles within 7 of hawaii and [1,1] means that only 1 enemy (minimum) is needed to set off this event. I'd also change the #DATE to something that falls after 1947 as iirc this is a failsafe date rather than something that needs to be satisfied.

I hope this is all understandable as it is still early here ;)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...