Loading save

» Settlers Map Source Forums » Siedler DEdK Script Forum » Loading save

Pages: 1

Qba331PL
#1
09-09-2018 11:29
Posts: 94

Loading save

Hi!

I've got a problem. I used function that changes player color (not in FMA). But after loading the save, color comes back to blue. How to fix it?

mcb
#2
09-09-2018 12:14
Posts: 1331

This is, because the player colors don't get saved. Instead InitPlayerColorMapping is called again after the game got loaded. So if you want to change a player color, best way to do it is to set a variable and then test inside the InitPlayerColorMapping to set the correct color. Then simply call the InitPlayerColorMapping again, after you changed the variable.

SH
#3
09-09-2018 14:05
Posts: 46

Posted by Qba331PL:
Hi!

I've got a problem. I used function that changes player color (not in FMA). But after loading the save, color comes back to blue. How to fix it?



Here you can find the code to the function ChangePlayerColor: http://www.siedler-games.de/si...utorials:spielerfarben_aendern

____________________
It's important to understand the scripts you use.

Pages: 1

SiteEngine v1.5.0 by nevermind, ©2005-2007
Design by SpiderFive (www.siedler-games.de) - English translation by juja

Impressum