Script does seem to work, but as soon as it is activated there is an out of sync error and the other player drops.
I also modified a scenario. (the one where you free the Sand Warden--Dakhla) I added in a player 2 to the game and started it. None of the script worked. I started as player 1 (Sawu??, some tribe or other?), and player 2 as intended with 2 heroes. I had to wait until I had 200 gold to buy a city. Eventually I got the tech to see in my territory, and I finally found blue. Then I disconnected from him seconds after...
The other scripts I used were as follows. They work as intended except for the whole OOS.
1)
Quote:
void game_callback on_game_frame() {
Location test1 = "test1";
run_once {
create_unit ("1","Glass Dragon Start", test1);
}
}
2)
Quote:
void game_callback on_game_frame() {
Location test1 = "test1";
run_once {
create_unit ("1","Glass Dragon Start", test1);
}
void game_callback on_unit_killed (Unit the_unit) {
Location the_location = unit_location(the_unit);
create_unit (get_unit_leader(the_unit), get_unit_type(the_unit), the_location);
}
I did play around with the "type" of game in the map editor, testing it as "multiplayer" instead of "scenario". Same results. At all times, it is a "1v1" game, countable in the score system...
So I guess this is a semi complaint/question: has *anyone* been able to get ANY script working, and if so, what is it? If not, BHG needs to fix it if they want their game to have any decent scenarios.
:-)