Couple of script questions

Strategic Command WWII World at War Tech Support
Post Reply
User avatar
Elessar2
Posts: 1478
Joined: Wed Nov 30, 2016 12:35 am

Couple of script questions

Post by Elessar2 »

#1, Partisans only work one way; that is, the PARTISAN FLAG does not allow you to ensure BOTH sides get partisans if they occupy hexes in a given country, only the side which conquered the country in question.

#2, weird issue with how the text of a POPUP event displays. The script, then the associated text:

{
#NAME= Warning about Chinese militia spawns in S. China
#POPUP= <<TAG_233>>
#MESSAGE=
#IMAGE=
#SOUND=
#FLAG= 1
#TYPE= 0
#AI= 0
#LEVEL= 0
#GV= 1[1,100]
#LINK= 0[0]
#COUNTRY_ID= 60
#TRIGGER= 100
#PRIVATE= 1
#DISPLAY_ORDER= 1
#DISPLAY_TURN= 1
#DISPLAY_STYLE= 0
#MESSAGE_STYLE= 2
#DATE= 1941/12/07
#TEXT_RGB= 255,255,255
#SHADOW_RGB= 0,0,0
#MAP_POSITION= 88,42
; Tokyo is in Axis hands
#ALIGNMENT_POSITION= 123,53 [1]
;Japan is at war
#VARIABLE_CONDITION= 60 [1] [100] [0]
; Dummy condition (always satisfied)
#CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0]
}

<<TAG_233>>= %N%N%N%N%N%BNOTE %BON %BCHINESE %BMILITIA %BSPAWNS %BIN %BSOUTH %BCHINA:%N%NTo ensure that no extra Chinese militia units spawn in South China, avoid moving any units near the following towns:%N2 hexes of Kanhsie%N2 hexes of Kukong%N1 hex of Wuchow%N1 hex of Luchow%N1 hex of mine S of Tuyun

The issue is that the text is NOT formatted; IOW the special characters show up in the popup and don't format the text in the desired fashion, nor does the window expand vertically to accomodate the length of the message. Is one of the toggles in the script set incorrectly?
SittingDuck
Posts: 1203
Joined: Sat Aug 31, 2002 9:08 pm

RE: Couple of script questions

Post by SittingDuck »

For #1, I am guessing by 'get partisans' you mean 'are hassled by partisans', yes?

For#2, I could be wrong, but I didn't think the tag texts were supposed to be formatted?

redrum68
Posts: 1698
Joined: Sun Nov 26, 2017 1:53 am

RE: Couple of script questions

Post by redrum68 »

@Elessar2 - I believe you need to put the <<TAG_233>> with formatted text to the MESSAGE not POPUP parameter so:

#NAME= Warning about Chinese militia spawns in S. China
#POPUP=
#MESSAGE= <<TAG_233>>
User avatar
BillRunacre
Posts: 6890
Joined: Mon Jul 22, 2013 2:57 pm
Contact:

RE: Couple of script questions

Post by BillRunacre »

1) You're right, partisans fight for their country, i.e. in accordance with its alignment, rather than against it.

2) redrum68 has the answer. [:)]
Follow us on Twitter: https://twitter.com/FurySoftware

We're also on Facebook! https://www.facebook.com/FurySoftware/
User avatar
Elessar2
Posts: 1478
Joined: Wed Nov 30, 2016 12:35 am

RE: Couple of script questions

Post by Elessar2 »

Yeah, knew it would be something dumb on my part, again.

1st question remains, tho I know the answer (they only pop up for the attacked/surrendered side), just wish they would work both ways. WiF does it that way, note.
Post Reply

Return to “Tech Support”