[messages] [Module Design] Need help assigning players within sides
ed at crucible.cc
Mon Apr 9 22:39:11 MST 2012
Make individual sides (like Red 1, Red 2 and Red 3) and two 'composite'
ones. An example of this idea is in a World War II game, where there are
US, UK and USSR forces on one 'team', and Germany and Japan on the
other. So in a five player game, it's easy...each player takes one
country. But for the case of a two player game, you also define an
'Allies' side and an 'Axis' side. The Allies side controls the combined
US and UK and USSR; the Axis controls Germany + Japan.
The way you would implement this in your module is something like this:
define sides like 'Red Team', 'Red 1', 'Red 2', 'Red 3', and the same
for Blue. 'Red Team' or 'Blue Team' would be the sides each player would
take if there were only 2 players in the game; otherwise, in a game with
a large number of players, each player takes their own side (Red 1, Red
2, Red 3, Blue 1, etc.)
if you define a private window, you could define the possible owners as
This way, in a six player game, any Red player could use that window,
but Blue players couldn't. And in a two player game, the Red Team player
could use the window too, but his opposite number couldn't.
You definitely don't want to have -any- sides share passwords. That's
just going to be no end of trouble. Each side should have a unique name
(you can't have multiple sides named 'Red') and password.
Read this topic online here:
More information about the messages