ID:179198
 
I need to set up a turn sequence, where only the active player (out of 5 possible players) is allowed to draw a tile. I don't want to simply make the (draw tile) verb hidden for other players, as they could still type it in on the command line.

I'm curious how people generally handle activating/deactivating verbs for a turn-based game.

thanks!
Take a look at Dan's Take Turns library. It's essentially what I used as my starting point for Una.

http://www.byond.com/hub/Dan/TakeTurns

For each possible action, I basically have something that checks to see whether the user is the current active player. If not, nothing happens; otherwise the action gets carried out. Of course, some actions may have to do more complex checks if certain things can only happen at certain times, etc. But basically something like this:
if (trn.act_player != src)
src << "You can't do that now!"
else
// do the stuff here