have the captured flag set a variable to a number aka if West has it is 1 if East has it is 2
West Guy:
have a script that detects if guy is dead the have it detect when he is alive again then if the variable is 1 (west) then setpos him to the flag if variable is not 1 then loop it like this
;Variable is flagStat
#start
@!alive Dude
@alive Dude
?(side Dude == West): goto "westStuff"
;East
?(flagStat == 2):setpos POSITION HERE
exit
#westStuff
?(flagStat == 1): setpos POSITION HERE
exit
syntax might not be right but u get the idea