Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   how to make player invis??? (https://forums.graalonline.com/forums/showthread.php?t=5440)

everandom 06-22-2001 02:18 PM

how to make player invis???
 
like in the graal 3k...
is it only available in the Graal version other than mine????(v1.41)
im scripting on my laptop couldn't transfer the newer one yet...

MoonAngel 06-22-2001 02:43 PM

When using:

if (weaponfired) {
hideplayer 999;
}

this will do what it says =P

On G2K1 of any version, even the shadow disappears but the R button is still available to find the hidden ***s ;)

everandom 06-22-2001 02:46 PM

thank you Moonangel you help me so much
 
thanx man... :)

Shard_IceFire 06-22-2001 08:36 PM

OR (if you wanted an invis weapon) you could do
NPC Code:

if (playertouchsme) {
toweapons Invis Thingy;
}
if (weaponfired&&!invison) {
sleep 0.05;
set invison;
timeout=0.05;
}
if (weaponfired&&invison) {
sleep 0.05;
unset invison;
}
if (timeout&&invison) {
hideplayer 0.1;
timeout=0.05;
}


I think that would work...

vergil 06-22-2001 09:38 PM

flags with NPCWs are evil
think splashboots

anyway i didnt know it hides the shadow but if it doesnt you can just use the sitting sprite

grim_squeaker_x 06-22-2001 10:28 PM

Hmm...
NPC Code:
if (playertouchsme) toweapons Now you see me now you don't;
if (weaponfired) this.active=(this.active+1)%2;
if ((created||timeout)&&isweapon) {
if (this.active==1) hideplayer 0.05;
timeout=0.05;
}


grim_squeaker_x 06-25-2001 06:30 PM

Quote:

Originally posted by Kaimetsu


Yuk. Less lines != more efficient. Besides,

NPC Code:
this.active=1-this.active



is more efficient.

Just be glad I didn't use:
NPC Code:
if (weaponfired) this.active=(this.active==0);


grim_squeaker_x 06-25-2001 06:55 PM

Quote:

Originally posted by Kaimetsu


That... would actually be quite good. Better than using the mod function, at least. Would "this.active=!this.active" work in Graal?

I don't know, I'll just try :p
[edit]Nope, this.active=!this.active doesn't work.[/edit]

grim_squeaker_x 06-25-2001 07:05 PM

Quote:

Originally posted by Kaimetsu


It just depends on whether "!" is a modifier or just a comparison thingy. Like the difference between | and || in C.

Well it doesn't work.


All times are GMT +2. The time now is 05:27 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.