Loading save

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

Seiten: 1

Qba331PL
#1
09.09.2018 11:29
Beiträge: 101

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
Beiträge: 1393

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
Beiträge: 65

Zitat von 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.

Seiten: 1

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

Impressum