Othmaar wrote:
I did try earlier, and now did it again ... maybe the filname is too long or the file itself to short (only a single line)? Or maybe some silly typo ... ill try some more
are you still having problems with your messagebox? one thing i did notice that is like what Pitsu mentioned about the editor not having things current, or changed, is that when you just enter a new message reference in the map properties tree, it shows the path to the new txt file with "" while any older txt messages have a path with a "/".
the paths do not change from \ to / that till after you save and close the editor and re open it, then all your slashes are in the right direction and paths can be copy and pasted.
so if you are directly copying and pasting the path from a newly made txt file, then you will be copying the wrong path.
so after more tests, i have figured some more interesting things out.
first off, the scripts provided by Othmaaar and Pitsu still did not work for me, i still had that "object" is not exist error message.
so i opened a whole new map, placed player1 and player2, and each gave them an obtain artifact objetive.
then i started as player1. the above scripts worked, a message appeared after objective complete.
i then reloaded the map as player2, and the script did not work.
even though i used Othmaar's script that gets current player and sets it as a variable. it still did not work with player 2.
so then just to make sure, i opened the map im making, and changed player3 to player1 and the script now works.
but this to me is not a solution. the script works, but its limited. it only shows messages if player1 completes an objective.
im making a sylvan single mission, and didnt want it to be a red player, but a green player.
which could have been part of my problem, i set player3 to be the human, but when i load the map in the game, the human player is player1 green. but oddly all my other objectives that i set for player3 in the map property tree work, show up in the objective log and can be compelted, even though im technically player1.
hope that all makes sense
but, what would be interesting to figure out, is why the script only works for player1 and no other player....i really didnt want my sylvaans to be a red player.