Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 06-22-2001, 02:18 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
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...
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #2  
Old 06-22-2001, 02:43 PM
MoonAngel MoonAngel is offline
Banned
MoonAngel's Avatar
Join Date: Mar 2001
Location: QUÉBEC!
Posts: 1,443
MoonAngel is on a distinguished road
Send a message via ICQ to MoonAngel Send a message via AIM to MoonAngel
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
Reply With Quote
  #3  
Old 06-22-2001, 02:46 PM
everandom everandom is offline
Registered User
Join Date: Apr 2001
Posts: 286
everandom is on a distinguished road
Smile thank you Moonangel you help me so much

thanx man...
__________________
RaNdoM InSaNiTy
!!??!!??!!??!!??!!
I'm always been unwanted!!!
MY english kwap
Reply With Quote
  #4  
Old 06-22-2001, 08:36 PM
Shard_IceFire Shard_IceFire is offline
Registered User
Shard_IceFire's Avatar
Join Date: Jun 2001
Location: Eastern Harkoonia
Posts: 861
Shard_IceFire is on a distinguished road
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...
__________________

-=Shard IceFire=-
Reply With Quote
  #5  
Old 06-22-2001, 09:38 PM
vergil vergil is offline
Registered User
vergil's Avatar
Join Date: Mar 2001
Posts: 1,408
vergil is on a distinguished road
Send a message via ICQ to vergil
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
Reply With Quote
  #6  
Old 06-22-2001, 10:28 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x is on a distinguished road
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;
}

__________________

Reply With Quote
  #7  
Old 06-25-2001, 06:30 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x is on a distinguished road
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);

__________________

Reply With Quote
  #8  
Old 06-25-2001, 06:55 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x is on a distinguished road
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
[edit]Nope, this.active=!this.active doesn't work.[/edit]
__________________


Last edited by grim_squeaker_x; 06-25-2001 at 07:00 PM..
Reply With Quote
  #9  
Old 06-25-2001, 07:05 PM
grim_squeaker_x grim_squeaker_x is offline
Retired Oldbie
grim_squeaker_x's Avatar
Join Date: Mar 2001
Posts: 3,084
grim_squeaker_x is on a distinguished road
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.
__________________

Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 12:48 PM.


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