Okay, sorry let me try again, I think my head is more clearer now.
I think you can do this without a restricted range key command. Let’s see, Unit A moves into a zone, this should cause an ending movement key command from the map to trigger everything. To start we will need Unit A to store its current zone in a Global Property, I don’t think there’s anyway around this.
Next Unit A will fire a Global Key Command which applies to any unit in the same zone, using the Global Property for reference.
…Okay I think I understand your dilemma, if you skip the Global Property and try to reference the Local Property of Unit A’s location, it does not work right? Yeah, I just checked it myself and it seems Global Key Commands, no matter where they come from, are incapable of referencing local properties to be used as a comparison to another property.
I can see why this seems strange, I wonder myself now why a piece can launch a Global Key Command, as opposed to a Global Hotkey that launches a module level Global Key Command, when there doesn’t seem to be any difference between the two EXCEPT the restricted range option.
But there are actually quite a few odd cases like this in the many piece traits and their functions, like Place Marker and Replace With Other almost having the exact same functions, but one has a match current state option, and the other only has a match rotation option, which always puzzled me.
Okay I didn’t quite understand what was going on last time, but I do now better I think, been a little sick. Well I guess this odd issue is left up to the developers now and the future direction of vassals development. Anyway I hope you did get it to work, cheers.