var/Game = 0
var/Clock = 0
mob
//host commands
host/verb
Start()
set category="Host"
set desc="Starts the game"
if (Clock<1)
Ticker()
else
usr << "Game has already started"
proc
Ticker(Ticker=input("Game Time") as num).
Game = 1
while(Ticker > -1)
if(Ticker > -1 && Ticker<11)world<<"<h3>[Ticker]</h3>"
--Ticker
Clock = Ticker
sleep(10) //one second
if (Ticker == 0) endGame()
client
North()
if (Game==0)
usr << "You cannot move until Game starts because Fartmonger said so..."
return
else
..()
//note that I repeated this for all directions
Problem description:
I've got a seriously confuzzling problem, on my computer this code works exactly as it should; if the host hasn't started the game yet, players can't move, because the "Game" variable is at 0, but when the clock is ticking, Game is at one and so people can move... simple enough...
however, when I try to host or run the game on my friend's compy, it breaks, even after the game has started and the clock is running, players cannot move... help me please :-(