ID:149320
 
how would i change someones view to 1 when they step on the turf "view 1"???
....please? if anyone knows how to do this plz tel me, please?i need it badly...
In response to Redslash
I think you would do world.view=1 (btw view is spelled view not veiw)(I before E except after C)
In response to Emperor Beld
ok... i tried this:

mob
turf
castle_turf
Blind
icon = 'Castle terrain.dmi'
icon_state = "Floor"
usr.view = 1
and got this...

Turf, Obj, and Area's.dm:47:error:usr.view:undefined var

please help me out on this one guys...and girls...
In response to Redslash
instead of using "usr.view=1" try "view = 1"

if that doesn't work then come on back...
In response to Star313
nope.... it now gives me

Turf, Obj, and Area's.dm:47:error:view:undefined var

any other suggestions... im sorry... i've been working all night on this...its annoying...
In response to Redslash
Okay, okay, try setting it as "luminosity = 1"
In response to Star313
Well, no errors, CEPT IT DOESN'T DO ANYTHING!!!!
In response to Redslash
It's not possible yet to change the view of the world or the usr just yet.
In response to Thief Jack
view is a world variable(ie world.view), and as such you cannot change it for each individual person. You can change their luminosity, however. If you wish to totally blind someone, you can also take a look at client.eye. Perhaps set client.eye to a null location(client.eye=locate(1,1,0))

Alathon
In response to Star313
Okay, changing luminosity won't work. (As he said.)
"This sets the object's luminosity (how far it casts light)."

Like someone else said, try changle client.eye to null

But, look in the Help file, and we get:
sight var (mob)
See also:
invisibility setting (verb)
invisibility var (atom)
see_in_dark var (mob)
see_infrared var (mob)
see_invisible var (mob)
view proc
Default value:
0
This controls which objects on the map the mob can see. The default value of 0 means that the mob can see all objects that are visible and lit. Different flags in this var can be set to extend or limit this range.

The following bit flags are encoded in mob.sight:

SEE_INFRA // can see infra-red objects
SEE_SELF // can see self, no matter what
SEE_MOBS // can see all mobs, no matter what
SEE_OBJS // can see all objs, no matter what
SEE_TURFS // can see all turfs (and areas), no matter what
BLIND // can't see anything

Example:
usr.sight |= BLIND // turn on the blind bit
usr.sight &= ~BLIND // turn off the blind bit
usr.sight |= (SEE_MOBS|SEE_OBJS|SEE_TURFS) // turn on several bits at once
usr.sight &= ~(SEE_MOBS|SEE_OBJS|SEE_TURFS) // turn off several bits at once

---------------------
Hope that helped.

-Nova
In response to Alathon
Hey! i just figued out how to do this, all i need to do is set the jail walls to opacity = 1!!!
In response to Redslash
usr.client.view