Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Invisibility, effects and hideplayer() (https://forums.graalonline.com/forums/showthread.php?t=75027)

Raeiphon 07-01-2007 11:25 AM

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)

Admins 07-01-2007 01:22 PM

There is an "alpha" variable for players in the next Graal version

Twinny 07-01-2007 01:35 PM

Quote:

Originally Posted by Stefan (Post 1324571)
There is an "alpha" variable for players in the next Graal version

Well that makes one of my plans incredibly easier :D

Cloven 07-01-2007 02:32 PM

Quote:

Originally Posted by Stefan (Post 1324571)
There is an "alpha" variable for players in the next Graal version

That certainly makes some ideas more practical. :D

theHAWKER 07-03-2007 07:24 AM

next graal :O

sounds like u should upgrade the editor too ;D

zokemon 07-03-2007 11:11 AM

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("", "");

coreys 07-03-2007 11:33 PM

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.

Moondeath_2 07-04-2007 12:06 AM

Quote:

Originally Posted by coreys (Post 1325470)
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.

JkWhoSaysNi 07-04-2007 12:19 AM

Will showganis also have alpha properly in the next version?

coreys 07-04-2007 01:13 AM

Quote:

Originally Posted by JkWhoSaysNi (Post 1325497)
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.

zokemon 07-08-2007 01:20 PM

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.


All times are GMT +2. The time now is 02:16 PM.

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