Log in

View Full Version : Script command to force AI to lift a siege?



iamphet
12-13-2008, 16:44
There are pirate navy which are blocking my port for last 10-20 years. I cannot attack them with my fleet so I guess they are just stuck.
Is there a way to make them lift the siege? kill_character "Admiral Okaz" leads to CTD, move_character moves pirates but leaves the siege :furious3:
Any possible workarounds?
https://img142.imageshack.us/img142/5462/piratesfi2.th.jpg (https://img142.imageshack.us/my.php?image=piratesfi2.jpg)

bovi
12-13-2008, 18:50
No, I don't think there is any script command that can do that.

LordCurlyton
12-13-2008, 23:38
Auto_win your navy versus them....
EDIT: I'm presuming you've built up enough to have a navy....

Tellos Athenaios
12-14-2008, 00:01
And if that doesn't work you can (at the risk of broken stuff, but hey ... you're dealing with the Flying Dutchman, right?) experiment with
move_character "<name>" <x>,<y>

LordCurlyton
12-14-2008, 00:47
The thing about move_character, which he said he had already tried, is that it just moves the character, and it doesn't actually change the state the character is in. So if a char is sieging, the computer will continue to treat it as sieging (or in this case, blockading) until something is done to change the state (you move it via normal means if its yours, the AI decides to do likewise if its not).

bovi
12-14-2008, 07:06
And likewise, he's said that he's unable to engage the navy so auto_win won't solve it.

iamphet
12-14-2008, 19:07
Yes, bovi is correct: my fleet does not want to attack the pirates.
BTW to be precise, when I move_character, the pirates disappear completely (they do not appear at the new tile) so I cannot attack them there too.
The most worriest thing is I don't know what will happen when the admiral dies...

LordCurlyton
12-14-2008, 21:19
Are they hidden maybe? Even if they are invisible as long as the command doesn't return an error they will be in said tile (as long as you don't let a turn go by). So if you have a navy, ANY navy, even crappy transports, just teleport the admiral to your navy and auto_win attacker. You CAN'T lose when you auto_win. Yeah normally the Germans have crap for boats for a LONG time (I don't know if they ever get boats above the cruddy transport stage) but if you absolutely have to have the pirates dead, auto_win is the no-lose bet. You just need a boat of any sort.

bovi
12-14-2008, 22:08
Curlyton, the game refuses to engage the fleets when he does move a boat up there and tries to attack.

iamphet
12-15-2008, 08:42
Ok, played with this a bit more. There must be something wrong with terrain (sometimes I am able to see pirates but they disappear if you move the cursor over them, too modest to disclose any information :laugh4:)

Tried to edit WATER_SURFACE.TGA and got a nice CTD (I guess editing of world is not retroactive anyways...)

https://img258.imageshack.us/img258/3870/pirates2qq9.th.jpg (https://img258.imageshack.us/my.php?image=pirates2qq9.jpg)

iamphet
12-20-2008, 18:06
:elephant: Finally figured this out ~:doh:: moved pirates away with move_character and then re-constructed the port.
Unfortunately had to abandon the campaign anyway: fed up with getting CTD every 3-4 turns during eleutheroi turn :surrender2: