Map Database  •  FAQ  •  RSS  •  Login

Changing alliances while fighting

<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 09 Oct 2015, 10:42

Changing alliances while fighting

Hey,
I'm not sure if it's a bug or not (I consider it as one :P), but soldiers keep fighting when I make them allied. I wanted to use this script to stop a 1v1 battle, but that seems impossible...
<<

Krom

User avatar

Knights Province Developer

Posts: 3280

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 09 Oct 2015, 11:05

Re: Changing alliances while fighting

Yes, that looks like a flaw. Could be fixed I guess.
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 09 Oct 2015, 11:55

Re: Changing alliances while fighting

Would be nice. :)
<<

Krom

User avatar

Knights Province Developer

Posts: 3280

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 09 Oct 2015, 12:37

Re: Changing alliances while fighting

Would be helpfull to file it into github Issues.
And can't promise when and who can actually programm it ..
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 09 Oct 2015, 13:05

Re: Changing alliances while fighting

I'm not in a hurry. I can make and script the rest of the mission(s) while I wait. :)
<<

Krom

User avatar

Knights Province Developer

Posts: 3280

Joined: 09 May 2006, 22:00

KaM Skill Level: Fair

Location: Russia

Post 09 Oct 2015, 13:09

Re: Changing alliances while fighting

I'm afraid you can make more than that while waiting for it to happen ;-)

Maybe it's better to make a coarse "will do" solution for now (e.g. remove all units and readd the groups anew).
Knights Province at: http://www.knightsprovince.com
KaM Remake at: http://www.kamremake.com
Original MBWR/WR2/AFC/FVR tools at: http://krom.reveur.de
<<

RandomLyrics

User avatar

Sword Fighter

Posts: 298

Joined: 21 Jul 2013, 02:15

KaM Skill Level: Fair

Post 09 Oct 2015, 15:31

Re: Changing alliances while fighting

As i remember u have to set alliances for both players separetly:
PlayerAllianceChange(1, 2, false, true);
PlayerAllianceChange(2, 1, false, true);
Hmm i think the 'PlayerAllianceChange' will not work for units 'while fighting'.
Otherwise Krom's soultion will work :)
<<

The Dark Lord

User avatar

King Karolus Servant

Posts: 2154

Joined: 29 Aug 2007, 22:00

KaM Skill Level: Veteran

Location: In his dark thunderstormy castle

Post 09 Oct 2015, 18:06

Re: Changing alliances while fighting

I'm afraid you can make more than that while waiting for it to happen ;-)
Don't be too sure, I'm well known for the awesome slowness in which I make maps these days. :P For now I can just ignore it, because it's not a critical part of the mission. :)
<<

Vatrix

User avatar

Council Member

Posts: 410

Joined: 19 Apr 2013, 20:30

KaM Skill Level: Veteran

Location: Czech Republic

Post 25 Nov 2015, 19:37

Re: Changing alliances while fighting

I'd make script for them stop (halt) after you ally them. (not very pro idea, but it works :D)
I fixed The Shattered Kingdom and The Peasants Rebellion here!

Return to “Dynamic Scripting”

Who is online

Users browsing this forum: No registered users and 9 guests