I putthis in newbie central because i dont have much code to go with this. Im looking for a Cloak verb that sets density to zero and so that you cant be seen by others but you can see your self. in my current code you can see yourself and i wanna change that.
Cloak()
set desc = "() Toggle invisibility and lack of density"
set category = "Admin"
src.density = !density
src.invisibility = !invisibility
if(!density)
oview() << "[src] dematerializes and vanishes!"
src << "You dematerialize and vanish."
src.overlays += 'gone.dmi'
world.log << "[src.name] becomes invisible."
else
oview() << "[src] suddenly rematerializes and appears!"
src << "You materialize and appear."
src.overlays -= 'gone.dmi'
world.log << "[src.name] becomes visible."
see in this verb gone.dmi is just a blank overlay. but i dont want a overlay i want to be able to see myself without everyone else seeing me.
ID:177609
Aug 20 2002, 2:27 am
|
|
Aug 20 2002, 2:37 am
|
|
see_invisible
|
Here's the easiest way I know of doing this:
mob By the way, s_admin is legacy code, it won't really work with the new BYOND versions, and don't try to use it if you have no idea what you're doing. |
In response to WizDragon
|
|
nadrew invisability var is supposedly not defined. what should i put?
|
In response to Erdrickthegreat2
|
|
Invisability is not defined. Invisibility is, though.
|
In response to WizDragon
|
|
oh nvm nadrew accidentally put invisibilty instead of invisibility. hmm. so tarq can you help me out or point me in the right direction on the obj/door, that when created it asks for the doors name sets it to the door and creates a key in usr.content with the same name and u need that key to open that door, and is there anyway to delete the area/ceiling during play? I know you have the door code and i need it for my new rp game but im not sure about deleting area/ceiling. anyway you dont have to help but I'd be very appreciative if you do. And if you do wanna help but you dont want everyone having your code go on aim and send it to me if you decide your gonna.
-=ErdricktheGreat=- |
In response to Erdrickthegreat2
|
|
SO, i got the cloak verb to work, thanx nadrew. if you read this post tarq please reply whether you plan on helping me out on the code or not.
|