Right now I am just trying to get the game to display a message to the human civilization the first turn. I have gotten a message to display for the americans, but it won't display for any other nations. If anyone can give me some insite to this that would be appreciated. Also, when trying to display messages for other nations, nothing happens at all, no errors or messages.
int_t DM_USA_civ;
HandleEvent(BeginTurn) 'DMStartGame_F' post {
DM_USA_civ = CivilizationIndex('AMERICANS');
if(IsHumanPlayer(g.player)) {
humanciv = PlayerCivilization(g.player);
if(humanciv == DM_USA_civ) {
humanciv2 = PlayerCivilization(g.player);
Message (1, 'USA_StartA');
DisableTrigger('DMStartGame_F');
}
}
}
int_t DM_USA_civ;
HandleEvent(BeginTurn) 'DMStartGame_F' post {
DM_USA_civ = CivilizationIndex('AMERICANS');
if(IsHumanPlayer(g.player)) {
humanciv = PlayerCivilization(g.player);
if(humanciv == DM_USA_civ) {
humanciv2 = PlayerCivilization(g.player);
Message (1, 'USA_StartA');
DisableTrigger('DMStartGame_F');
}
}
}
Comment