SeaMonkey Posted August 16, 2008 Share Posted August 16, 2008 I'm trying to get Crete (originally Greece ID=20) to surrender within the time frame (late May 1941) of the German airborne assault. So I write a Surrender 2 script...right? Country ID is 20, the Transfer ID is Germany(5), I set the % trigger at 100 to test the script right off, later I'll make it a more variable like 60% and I put the date at the first turn of the campaign, also to test. I'll adjust later for a variable window of opportunity. Variable condition = 5(germany) [1]axis aligned, [100]%activated, [0] not surrendered....OK? I used a dummy condition position, 0,0 [0,0] [1,1] [0] [0]....for the test. Flag is true = 1, Type = 1 multiple check until satisfied...the other crap doesn't matter I've tried Greece, ie Crete, neutral, Allied, activated, different ownership ...what am I missing here? Heraklion is the capital. Why won't they surrender? :confused: I need to check a unit deployment script (Fliegerkorps X to the Crete after the surrender) so I need that variable satisfied first. Help! I don't want to have to recreate "Merkur" also. 0 Quote Link to comment Share on other sites More sharing options...
thetwo Posted August 17, 2008 Share Posted August 17, 2008 As a quick, off the top of my head response, the most common error I've made with scripts is not setting the AI = 0 properly when I want to test. 0 Quote Link to comment Share on other sites More sharing options...
SeaMonkey Posted August 17, 2008 Author Share Posted August 17, 2008 Dang it 2, wish it was that easy. I started this mod for H vs H, so all scripts are AI= 0. But thanks anyway. 0 Quote Link to comment Share on other sites More sharing options...
SeaMonkey Posted August 17, 2008 Author Share Posted August 17, 2008 Nevermind, I just wrote an annexation script and it worked. Not what I had in mind, but you figure out what works and move on. Thanks to all for the help. 0 Quote Link to comment Share on other sites More sharing options...
Hubert Cater Posted August 19, 2008 Share Posted August 19, 2008 SeaMonkey, it sounds like you have done the right coding for the script, I would suggest taking a look at the Italian surrender event for comparison and see what you might have overlooked. Hubert 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.