ID:145968
 
Code:
proc
StartGame()
switch(Game)
if("Hide 'n Seek")
world << "<b> [usr] is it! You have 15 seconds to hide!"
usr.verbs+=/mob/special/verb/Tag
usr.sight=1
usr.nomove=1
sleep(150)
world<<"<font color=red>[usr] says: READY OR NOT, HERE I COME!</font>"
usr.IT = 1
var/Hides = 1
usr.sight=0
usr.nomove=0
if(Hides)
if(!IT)
nomove = 1


Problem description: Mini-Game Tutorial.dm:53:error:IT:undefined var
Mini-Game Tutorial.dm:54:error:nomove:undefined var

No big surprise, really.. What I'm trying to do is freeze all of the players except the IT (wich is what the usr.IT = 1 takes care of), now I just need to know how to "name" all of those people..


No put usr in proc. Ungh.

Lummox JR
In response to Lummox JR
It works though, but still, that doesn't really answer my question... *Hopeless here...* T.T
I means you didn't define the variable. Your title explains your problem.

As for the usr in the proc, remove it. There are many reasons not to use it, and it's proven that it sucks. Use src or whatever you need to use besides usr.

var/nomove = 0 //Defined.


_Ryan
In response to Mysame
Mysame wrote:
It works though, but still, that doesn't really answer my question... *Hopeless here...* T.T

Maybe it works.. but you are abusing usr. For further info you might want to read The UsrLecture.

O-matic
In response to Ryne Rekab
Ryne Rekab wrote:
I means you didn't define the variable. Your title explains your problem.

As for the usr in the proc, remove it. There are many reasons not to use it, and it's proven that it sucks. Use src or whatever you need to use besides usr.

> var/nomove = 0 //Defined.
>

_Ryan

No poo sherlock, only bad thing about it is that it doesn't work, and it needs to be defined as a var/mob

But meh, I'll look into it tonight, only bad thing is that my comp is fried atm... Oh well.