I'm working on a defense map where a player's unit color changes depending on the main hero they select at the beginning of the game. Players choose heroes by mind-controlling the unit they wish to have, and then all of their units subsequently change color once mind control is cast. For example, if a player mind controls a dragoon hero, all of their units become blue. Also, just to clarify, I only want the player's unit color in-game to change, not the player's mini-map color (the map is team-based, so I want team 1's minimap color to always be red and team 2's minimap color always being blue, with the player's own units obviously showing up as green). The triggers for changing unit color that I'm currently using are simple and look like this:
Change Player Color to Blue
Players
Conditions
Actions
In single player (or when playing by myself online) these triggers work perfectly. Unfortunately, when I go online with other players desynchronization occurs and everyone gets dropped from the game. I've read up about EUDs (including Roy's extremely helpful topic here: http://www.staredit.net/topic/14226/#6) and understand that this has to do with local vs global addresses and actions, so I'm pretty sure that I'm being a n00b by using an unviable combination of local addresses and global actions. However, I'm pretty sure that what I'm trying to do is possible. Is there a way that I can configure my triggers to prevent desynchronization from occurring while achieving my desired effects? For example, if I make the trigger apply for all players instead of individual players, would that solve the issue?
By the way, I'm aware that the EPD editor exists which can (theoretically) change player colors within the game. However, when I tried to do this with the EPD editor, I got an "invalid scenario file" error in Starcraft. Additionally, I would prefer to solve this issue using SCMDraft 2's regular trigger editor and the use of manual EUDs/memory modification, as I want more experience as to how global/local addresses/actions work and manual triggering in general.
Thanks for checking out this topic, and any suggestions or advice regarding this issue would be most appreciated! ^-^
Check out my maps!
-:- Sorcerers IV: http://www.staredit.net/sc1db/file/5620/
-:- Sorcerers III: http://www.staredit.net/sc1db/file/5152/
-:- Sorcerers II: http://www.staredit.net/sc1db/file/4512/
-:- Sorcerers I: http://www.staredit.net/sc1db/file/5052/
-:- Siege Defense: http://www.staredit.net/sc1db/file/4380/
-:- Ultimate Clockwise Sunken Defense: http://www.staredit.net/sc1db/file/4378/
-:- Sorcerers IV: http://www.staredit.net/sc1db/file/5620/
-:- Sorcerers III: http://www.staredit.net/sc1db/file/5152/
-:- Sorcerers II: http://www.staredit.net/sc1db/file/4512/
-:- Sorcerers I: http://www.staredit.net/sc1db/file/5052/
-:- Siege Defense: http://www.staredit.net/sc1db/file/4380/
-:- Ultimate Clockwise Sunken Defense: http://www.staredit.net/sc1db/file/4378/