ID:146716
 
Code:
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 :-(

nobody going to help me, even if you could give me a more efficient way to do the same thing, it would be appreciated....
I don't see anything here that would cause that. Do you, perhaps, have another variable somewhere named Game? Perhaps a mob variable? That might mess with it, maybe. I don't know. It all looks kosher to me.

~X
In response to Xooxer
No other variable like that at all, I think I'm just going to have to put it down to the fact that his compy is crap... which is a pity, because he was going to be my host....

thanks anyways
You are abusing usr in client/North(): it should be replaced with src. You should read the usr lecture.

[edit]
Also, if(Game == 0) should instead be if(!Game). To find out why, read this article.
In response to Wizkidd0123
I fixed all the syntax stuff like you said, just going to find another friend to host it... it's a demo btw if you wanna play it or whatever, Tiles is its name