[bfprog] [python] commander and squadleader assign, de-assign
"Einar S. Idsø"
esi at itk.ntnu.no
Mon Jul 11 15:37:56 PDT 2005
Don't know if this does anything, but I suppose it's worth a shot:
The isCommander() function is defined as:
def isCommander(self): return host.pmgr_p_get("commander", self
.index)
There is also a host.pmgr_p_set() function. Perhaps a simple
host.pmgr_p_set("commander", player.index, t)
might work? I don't know what the t is, but it could perhaps be team?
Similarly for squads, we have:
def getSquadId(self): return host.pmgr_p_get("sqid", self.index)
def isSquadLeader(self): return host.pmgr_p_get("isql", self.index)
I am unable to test at the moment, but would be very interested to hear
the results if anyone would care to try it out. :)
Einar
Panic wrote:
>
> Ah...I hope this is accessible through python!!!
>
> We have a concept we call "bigwar", that's just a community match,
> where people sign up and get assigned to a team, a squad and a task.
> But to get 64 loosely organized players to actually choose the right
> team and squad within a reasonable amount of time is harder than you
> should think. So in order to achieve this efficiently, it would be
> great to be able to do the following:
>
> 1. Assign people to a team. (This is easy).
> 2. Assign commanders and squad-leaders.
> 3. Assign/retire squad-members.
> 4. Send chat messages to particular players.
> 5. Send chat messages to particular squads. (Can be done with 4)
>
> Then we could just use our web-based sign-in form and the management
> system we've hooked it into, to generate lists of teams ans squads and
> commanders and squad-leaders, and assign people automatically as they
> join the server.
>
> So PLEASE, anyone with suggestions as to how we can achieve ANY of
> this (except 1), feel free to post a reply :-)
>
> -Frode
>
_______________________________________________
BFProg mailing list
BFProg at lists.matureasskickers.net
http://lists.matureasskickers.net/mailman/listinfo/bfprog
More information about the BFProg
mailing list