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 07-01-2007, 11:25 AM
Raeiphon Raeiphon is offline
I never asked for this.
Join Date: Jun 2005
Posts: 855
Raeiphon is on a distinguished road
Invisibility, effects and hideplayer()

I'm planning to script an invisibility suit. I've toyed around with the hideplayer function, and I have a few questions:

Does hideplayer(); work as a toggle when no float is specified, or does it not work at all? There doesn't appear to be a showplayer function, so this is confusing me.

Also, is there any way to produce the effect of a player fading out in a ganiscript? I'm not too proficient with both ganiscript and the emitter, so I haven't really tried. I'm after a shaking/fading effect that's often seen in horror movies (I can't really explain it, but I could probably do it if there was a way to express a player as an emitter object)
__________________

I hope for nothing. I fear nothing. I am free.
Reply With Quote
  #2  
Old 07-01-2007, 01:22 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There is an "alpha" variable for players in the next Graal version
Reply With Quote
  #3  
Old 07-01-2007, 01:35 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Quote:
Originally Posted by Stefan View Post
There is an "alpha" variable for players in the next Graal version
Well that makes one of my plans incredibly easier
Reply With Quote
  #4  
Old 07-01-2007, 02:32 PM
Cloven Cloven is offline
Delteria
Cloven's Avatar
Join Date: Dec 2006
Location: Florida, United States
Posts: 542
Cloven has a spectacular aura about
Send a message via AIM to Cloven
Quote:
Originally Posted by Stefan View Post
There is an "alpha" variable for players in the next Graal version
That certainly makes some ideas more practical.
Reply With Quote
  #5  
Old 07-03-2007, 07:24 AM
theHAWKER theHAWKER is offline
**FLIP OUT**
theHAWKER's Avatar
Join Date: Mar 2006
Location: canada, vancouver
Posts: 768
theHAWKER is an unknown quantity at this point
next graal :O

sounds like u should upgrade the editor too ;D
__________________
**FLIP OUT**
Reply With Quote
  #6  
Old 07-03-2007, 11:11 AM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
To OP:
I suggest you tinker with player.zoom if you want to hide the player.
Just basically do something like set a player.attr to true if someone should go invisible then either in a System script or in a gani status script (like the "heart" gani that was on Maloria when it was public) make something that hides players with that attr set to true. Just player.zoom = 0; to hide and player.zoom = 1; to show. This will also hide their name.

Then there is also the easy way:
setani("", "");
__________________
Do it with a DON!
Reply With Quote
  #7  
Old 07-03-2007, 11:33 PM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Or you could just use replaceani() on the idle and walk gani's (and any others that might show up) with a blank gani (or one that doesn't exist at all)

What Maloria did for stealth was make a gani that was just a small light effect and used replaceani(), if I remember correctly.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #8  
Old 07-04-2007, 12:06 AM
Moondeath_2 Moondeath_2 is offline
"..."
Moondeath_2's Avatar
Join Date: Jan 2006
Location: Far Far Away.
Posts: 238
Moondeath_2 is an unknown quantity at this point
Send a message via AIM to Moondeath_2 Send a message via MSN to Moondeath_2 Send a message via Yahoo to Moondeath_2
Quote:
Originally Posted by coreys View Post
Or you could just use replaceani() on the idle and walk gani's (and any others that might show up) with a blank gani (or one that doesn't exist at all)

What Maloria did for stealth was make a gani that was just a small light effect and used replaceani(), if I remember correctly.
Dur, but it was still smexy.
__________________
Aim: DarkFireXZ3
Email: [email protected] or [email protected]
Common Location: Unholy Nation
Gscript, Playerworld Rules, Support Center
Reply With Quote
  #9  
Old 07-04-2007, 12:19 AM
JkWhoSaysNi JkWhoSaysNi is offline
Ruler of the graalaxy
Join Date: Feb 2005
Location: Great Britain
Posts: 488
JkWhoSaysNi is on a distinguished road
Send a message via ICQ to JkWhoSaysNi
Will showganis also have alpha properly in the next version?
__________________

Coming soon (Hopefully:P)
Reply With Quote
  #10  
Old 07-04-2007, 01:13 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
Quote:
Originally Posted by JkWhoSaysNi View Post
Will showganis also have alpha properly in the next version?
One would hope, although some things should still be possible to alpha in a gani script...just depends on what it is, I guess.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #11  
Old 07-08-2007, 01:20 PM
zokemon zokemon is offline
That one guy...
zokemon's Avatar
Join Date: Mar 2001
Location: Sonoma County, California
Posts: 2,925
zokemon is a jewel in the roughzokemon is a jewel in the rough
Send a message via ICQ to zokemon Send a message via AIM to zokemon Send a message via MSN to zokemon Send a message via Yahoo to zokemon
Well when he said players I'm assuming he meant all TGaniObject's which includes TServerPlayer. So I am sure this will also branch out to TShowImg_Ani's as well.
__________________
Do it with a DON!
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 10:00 PM.


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