ok i can cloak but not even i can see myself..... this is what i have.....
mob/proc
cloak()
invisibility = 100
density = 0
ID:178593
Apr 25 2002, 9:24 am
|
|
Apr 25 2002, 10:02 am
|
|
Set see_invisible to the same level as your invisibility.
|
In response to Foomer
|
|
then cant you see others that are invisible?
|
mob/verb/goinvisiblebecuaseihaveacloak()
if(usr.invisibility == 1) usr << "You are already invisible!" else usr << "You turn invisible!" usr.invisibility = 1 usr.sight |= SEE_SELF sleep(300) usr.sight &= ~SEE_SELF usr.invisibility = 0 I'd already answered this for you. |
invisibility goes from 1 , 101 based on who you want to see who, to make it so only you see yourself make it so the SEE_INVIS=101 so you see yourself but no one else does. Have to make if +1 of your invis to see yourself, make the seeinvis proc for the other players less than 100
|
In response to Winbiko
|
|
you cant have it one or the oter if yer invis is 100 and you wanna see yourself, yes you will have to see others too, but thats the problem with sight=, only way to see yourself is by making it+1 of yer actual invis and yes this will cause you to see others 100 or below.
|
Alternatively, you could make an image proc that overlays your mob, or you could fiddle with the sight bits instead and activate SEE_SELF.
|
In response to Draconite
|
|
heres a really good code for that invisibility stuff that will make you invisible to everyone but yourself
obj/stealth icon = 'stealth.dmi' obj/stealth/verb/disappear() set src = usr.contents usr.invisibility = 1 usr.sight |= (SEE_SELF) view() << "[usr] disappears!" obj/stealth icon = 'stealth.dmi' obj/stealth/verb/appear() set src = usr.contents usr.invisibility = 0 view() << "[usr] appears!" this code does work i use it |
In response to Sob
|
|
You define stealth twice...
|