ID:266690
 
This is the ghostform code I have

        GM_ghostform()
set desc = "() Toggle invisibility and lack of density"
set category = "GM"
src.density = !density
src.invisibility = !invisibility

if(!density)
src.overlays += 'GM_ghostform.dmi'

else
src.overlays -= 'GM_ghostform.dmi'


Instead of making the little eye appear by the top and letting me see my character it makes him dissaper completly.
Emperor Beld wrote:
This is the ghostform code I have

>       GM_ghostform()
> set desc = "() Toggle invisibility and lack of density"
> set category = "GM"
> src.density = !density
> src.invisibility = !invisibility
>
> if(!density)
> src.overlays += 'GM_ghostform.dmi'
>
> else
> src.overlays -= 'GM_ghostform.dmi'
>

Instead of making the little eye appear by the top and letting me see my character it makes him dissaper completly.

Firstly, your verb doesn't toggle the command, it always sets the person invis.

And try <code>src.density = 0</code> instead of <code>src.density = !density</code>

In response to Malver
Firstly, your verb doesn't toggle the command, it always sets the person invis.

So what would I change to fix this?

And try <code>src.density = 0</code> instead of <code>src.density = !density</code>

Nope I tried that and it did the same
In response to Emperor Beld
Emperor Beld wrote:
Firstly, your verb doesn't toggle the command, it always sets the person invis.

So what would I change to fix this?

Unless it is elsewhere in your code, I didn't see the <code>see_invisable</code> var anywhere. Try setting that.

In response to Malver
Thanks that was the problem I got it to work now.

-Beld