Jazon -> RE: Bugs and scripting events struggle (1/15/2021 5:52:14 AM)
|
Hi everyone! I continue to design this campaign scenario. After thinking I decide to give players as much choices as possible, but with consequences. For example: big choice for Poles will be, triggered by Soviet approach to the heart of the country, forming „national unity government”. Polish player will be able to choose who to appoint as a prime Minister. Historically Soviet advance was stopped among other factors by mobilization of Peasants (80% of population) to defend country. However their situation was extremely bad, poverty and lack of land lead to multiply desertions from the Polish Army ranks and in turmoil in the countryside. Government, which was influenced by aristocrats was strongly opposing dividing the Great Landowners possession among poorest peasants. As you can imagine, especially in Russian Revolution wave context, peasants weren’t interested in dying for nothing. So, having a knife on their throats – Bolsheviks approaching Warsaw, with many votes against, Polish Parliament appointed Wincenty Witos as Prime Minister. Witos was a chief of Peasant;s Party, highly popular in the countryside, after nomination he announced the Land Reform, that parceled land to poorest peasants. This argument convinced Peasants that it is worthy to fight for New Republic. That’s a historical choice and will give the polish player benefits, such as end of desertions and unlocking the „Forming Volunteer Amry” event. This decision should also block possibility for Poles to declare war to Lithuania(Witos main aim was to end the war as soon as possible with minimal loses). However, I decided there should be a choose: Polish player can appoint Roman Dmowski – Nationalist party leader. That would not stop turmoil in the countryside, and desertions. However it will allow Poles to attack Lithuania if they want, and from few elite cavalry units, recruited from aristocracy. Also Soviets will have their own „alternate history” decisions. After capturing Bialystok where historically they formed Temporary Revolutionary Government with Dzierzynski, Soviets can follow this decision , and benefit from forming Division from local Polish „Reds”. However they can also plunder Bialystok (quite industrialized at this time), and gain 100 MPPs. This decision tough will have negative impact on Soviet PR as „people liberators” and this decision will give 1000 NM for Poles, strengthening their morale. There will be also optional decision to deploy Soviet Reinforcements. If they will be deployed as default, in Belarus, there will be no additional cost [ because they were heading from Petrograd], however Soviets can spend MPPs and delay them by one week and send them to reinforce the Ukraine Front. There are also other alternate decisions for me to design but I want to implement them whenever its possible to make game play more attractive. For those who are following this thread and have more knowledge about SCRIPTS design, I have few questions: 1 Units deployed on the map by UNIT script, when I choose they should be upgraded up to time, does it mean they are upgraded in all aspects? Ex. For infantry: infantry weapons, mobility, anti aircraft, or only main one – infantry weapons? This is a problem because I want to make HQs and some artillery units more mobile ( Red Calvary Army artillery and Gai-Chan corps). So my concern is how to deploy Units on map, using the DECISION, but only upgraded in weapons not anti aircraft or mobility. 2. Other thing is that I made a pop-up communicate, but i want only soviets should see it. How to do it? Also how to implement more text in Pop-up window as well with text? For example this one, text in message actually fits with this foto, but problem is it is seen by Polish player too:( Also in other Pop-ups I would like to place more text then two sentences. Best would be text and photo matched together nicely. There are some events that I want to explain with Pop-ups but I can't manage to edit photo and text together in a aesthetic way. { #NAME= GO WEST! #POPUP= GO WEST! #MESSAGE= Brave soldiers of the Worker's-Peasant's Red Army! The time to even the score has come. The Army of Red Banner and Army of sinister White Eagle faced each other in life or death struggle. Over White Poland's dead body there is a way to whole-world revolution! On our bayonets We will bring peace and prosperity to the working masses. Go West! Order 4012 Mikhail Tukhachevski #IMAGE= gowest.png #SOUND= #FLAG= 1 #TYPE= 1 #AI= 0 #LEVEL= 0 ;Set global variable condition to always trigger (dummy value) #GV= 1[1,100] ;Set link value to always trigger (dummy value) #LINK= 0[0] #COUNTRY_ID= 116 #TRIGGER= 100 #PRIVATE= 1 #DISPLAY_ORDER= 0 #DISPLAY_TURN= 0 #DISPLAY_STYLE= 0 #MESSAGE_STYLE= 1 #DATE= 1920/07/01 #TEXT_RGB= 50,0,0 #SHADOW_RGB= 0,0,0 #MAP_POSITION= #ALIGNMENT_POSITION= 78,9 [1] ;Set variable conditions: ; 1st Line - Poland politically aligned with the Entente and not surrendered #VARIABLE_CONDITION= 85 [2] [100] [0] ;Dummy condition position (always satisfied) #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] } 2 Also I have problem with TRIGGERS. Basically all EVENTS in the game will be based on Soviet Advance – how close they are to Warsaw. I made one decision that works pretty smoothly: { #NAME= Pilsudski taking Field command? (DE - 51) #POPUP= #MESSAGE= Commander, do you wish to put Chief of State Jozef Pilsudski into field command? Click Yes to form Pilsudski HQ. It will cost us 30 MPP for 4 turns. #IMAGE= #SOUND= #FLAG= 1 #TYPE= 1 #AI= 0 #LEVEL= 0 ;Set global variable condition to always trigger (dummy value) #GV= 1[1,100] ;Set link value to always trigger (dummy value) #LINK= 0[0] #COUNTRY_ID= 85 #TRIGGER= 100 #DISPLAY_ORDER= 1 ;Set decision value (first internally stored decision) #DECISION= 51 ;Set how many MPPs should be collected over X turns if player selects 'yes' (dummy values) #MPP_UPDOWN= -30 #MPP_TURNS= 4 #MPP_TEXT= #NOTES= #NOTES_POSITION= 18,42 ;Set AI acceptance % (AI will accept 100% of the time) #AI_RESPONSE= 100 #AI_RESPONSE_POPUP= #DATE= 1920/05/26 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 191,168,131 ; Warsaw is in Entente hands #ALIGNMENT_POSITION= 18,42 [2] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ;Set variable conditions: ; 1st Line - Poland politically aligned with Entente and not surrendered #VARIABLE_CONDITION= 85 [2] [100] [0] ; condition position Soviets approach Warsaw #CONDITION_POSITION= 18,42 [40,75] [1,100] [1] [116] } I put condition position pretty far, just for testing purposes [40 to 75 hexes from Warsaw] [from 1 to 100 units] I don't know if trigger from [ 1 to 1 units in range works as well from 1 to 100 units] I am afraid it will NOT hit when there will be maybe 3 units in range. Or I misunderstood that? Or maybe only one decision can be launched in one turn? I really already checked it three times in a game and it doesn't work. I have a problem with this script: { #NAME= Poland: Forming State Defense Government - Do you support Witos? (DE - 650) #POPUP= #MESSAGE= Soviets approached the heart of Poland. All parties in Sejm agreed to form State Defense Government. Do you wish to nominate Peasant's Party leader - Wincenty Witos as Prime Minister? (YES) This means we will promise to set agrarian reform in motion. That will upset the countries largest land owners, but will give us support of the countryside, prevent peasant's soldiers from desertion, and provide recruits to form Volunteers Army. (NO) We will support National Democrats Party Leader - Roman Dmowski? This will please aristocracy and hard-headed chauvinists. Aristocracy and Nationalists can form some experienced Cavalry Units on Dmowski call, but not many in numbers. #IMAGE= #SOUND= #FLAG= 1 #TYPE= 1 #AI= 0 #LEVEL= 0 ;Set global variable condition to always trigger (dummy value) #GV= 1[1,100] ;Set link value to always trigger (dummy value) #LINK= 0[0] #COUNTRY_ID= 40 #TRIGGER= 100 #DISPLAY_ORDER= 1 ;Set decision value (first internally stored decision) #DECISION= 650 ;Set how many MPPs should be collected over X turns if player selects 'yes' (dummy values) #MPP_UPDOWN= 0 #MPP_TURNS= 0 #MPP_TEXT= #NOTES= #NOTES_POSITION= 18,42 ;Set AI acceptance % (AI will accept 100% of the time) #AI_RESPONSE= 100 #AI_RESPONSE_POPUP= #DATE= 1920/05/26 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 177,197,213 ; Warszawa is in Entente hands #ALIGNMENT_POSITION= 18,42 [2] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ;Set variable conditions: ; 1st Line - Poland politically aligned with Entente and not surrendered #VARIABLE_CONDITION= 85 [2] [100] [0] ;Soviets approach Warsaw #CONDITION_POSITION= 18,42 [40,75] [1,100] [1] [116] } Also this doesn’t work, and I got no idea why: { #NAME= Poland: Use Allied Military Mission in Warsaw to form additional HQ? (DE - 52) #POPUP= Poland: Use Allied Military Mission in Warsaw to form additional HQ? #MESSAGE= We can use foreign Entente officers to form additional HQ, lead by Weygand. It will cost us no MPP's; but if we let foreigners command our troops it will affect our morale ( - 500 NM) #IMAGE= #SOUND= #FLAG= 1 #TYPE= 1 #AI= 0 #LEVEL= 0 ;Set global variable condition to always trigger (dummy value) #GV= 1[1,100] ;Set link value to always trigger (dummy value) #LINK= 0[0] #COUNTRY_ID= 85 #TRIGGER= 100 #DISPLAY_ORDER= 1 ;Set decision value (first internally stored decision) #DECISION= 52 ;Set how many MPPs should be collected over X turns if player selects 'yes' (dummy values) #MPP_UPDOWN= 0 #MPP_TURNS= 0 #MPP_TEXT= #NOTES= #NOTES_POSITION= 18,42 ;Set AI acceptance % (AI will accept 100% of the time) #AI_RESPONSE= 100 #AI_RESPONSE_POPUP= #DATE= 1920/06/01 #TEXT_RGB= 0,0,0 #SHADOW_RGB= 191,168,131 ; Warszawa is in Entente hands #ALIGNMENT_POSITION= 18,42 [2] ;Set National Morale Trigger (dummy value) #NATIONAL_MORALE_TRIGGER= 0 [0] ;Set variable conditions: ; 1st Line - Poland politically aligned with the Entente and not surrendered #VARIABLE_CONDITION= 85 [2] [100] [0] ;Dummy condition position (always satisfied) #CONDITION_POSITION= 0,0 [0,0] [0,0] [0] [0] } LAST question: How to change colors in message window? Instruction says: #TEXT_RGB= Text color for the decision event ; Format: red, green, blue (values range [0, 255]) But it doesn’t tell me much actually. I want to make Soviet texts red and Polish blue. What values shall i use? 4. Also I found holy graal for this scenario about Front in the North: complete list of units and their quantity on the date when my scenario launches. Its from Tukhachevskiy memories, written in Russian but for me Its not a problem. Thing I want to say „In internet there is everything, you just need to keep digging!” As always thanks for your support guys, suggestions and advice, they are most valuable and make this project possible to happen! Recently I was busy by my exams at university but since this week I can spare more time and maybe finally push forward with this scenario. Thank you all, and anybody who know how solve this problems I met please help. Cheers Jazon [image]local://upfiles/73489/79316F53F94B49AEB20EE8F228F4D38E.jpg[/image]
|
|
|
|