Improved Invisibility Effect

Post » Tue Jan 22, 2013 3:39 pm

I was able to create a magic effect for a ring that allows you to stay invisible even when opening doors, picking up objects, firing arrows at guards, etc.

Now the issue I'm running into is that even though you are invisible, the guards can immediately follow you around as if they're able to see you. So the game makes you invisible, but you're not invisible to NPC's it seems.

Here is a link to the youtube video that shows the magic effect: http://www.youtube.com/watch?v=Fihpxl209Iw&feature=youtu.be

Does anyone have any ideas how I can prevent the guards from seeing me? Or is there a way fake it, perhaps with ForceActorValue?

Any help is appreciated.
User avatar
TIhIsmc L Griot
 
Posts: 3405
Joined: Fri Aug 03, 2007 6:59 pm

Post » Wed Jan 23, 2013 3:52 am

How are you actually making the player "invisible"? If you are simply tweaking refraction or alpha values that won't work. Besides, from the video it seems that you are running around upright, and not in sneak mode. This means that to the AI you are generating more than enough noise to be detected (even whilst using the vanilla invisibility spell). I'd try to get in touch with http://www.gamesas.com/user/793793-verteiron/, I think he has already done something like this. You basically need to trick the game engine as well as provide the visuals, you seem to have only done one of those two.
User avatar
Elisha KIng
 
Posts: 3285
Joined: Sat Aug 18, 2007 12:18 am

Post » Tue Jan 22, 2013 5:56 pm

Indeed, what magic effect are you using to do this. I am interested in making a character invisible as an aesthetic, not a game mechanic, and assumed I had to write a script that set the alpha to 0 or .001, but this might be a lot easier.
User avatar
Alba Casas
 
Posts: 3478
Joined: Tue Dec 12, 2006 2:31 pm

Post » Tue Jan 22, 2013 6:24 pm

No. My script has nothing to do with Alpha or just visuals. It uses a combination of an enchantment and an actual spell. And as for the video, even when I attacked a guard, ran off behind a house and went into sneak mode, they managed to find me.

The Script:


Scriptname InvisibleMan extends activemagiceffectSPELL Property RoiSpell  Auto  Armor Property Roi  Auto  MagicEffect Property RoiEffect  Auto  Event OnEffectFinish(Actor akTarget, Actor akCaster)Game.GetPlayer().DoCombatSpellApply(RoiSpell, akCaster)If (Game.GetPlayer().HasMagicEffect(RoiEffect) == False)Game.GetPlayer().DoCombatSpellApply(RoiSpell, akCaster)endIfIf (Game.GetPlayer().IsEquipped(Roi) == False)Game.GetPlayer().DispelSpell(RoiSpell)endIfendevent 

The magic effect itself has the Recover flag unticked as well.
User avatar
Latino HeaT
 
Posts: 3402
Joined: Thu Nov 08, 2007 6:21 pm

Post » Tue Jan 22, 2013 10:32 pm

Well, like I said, there are some gameplay mechanics you have to bend to your will. I'm sure Verteiron could swoop in here and set you straight.

I think you need to clarify your goals though. What exactly do you want out of this spell? If it is simply an improved invisibility effect, you've probably got that sorted. However, I think you want to be more undetectable meaning you have to also silence the player's movements........

Helpful-papyrus-tip: Game.GetPlayer() is reportedly ~1000x slower than using a PlayerRef property. This isn't a big deal for a one-off call, but you use it multiple times.
User avatar
Charlotte Lloyd-Jones
 
Posts: 3345
Joined: Fri Jun 30, 2006 4:53 pm

Post » Tue Jan 22, 2013 3:20 pm

I don't particularly want the player to be completely undetectable. However, I would like it to be consistent to where if I attack an npc then run off around a corner and go into sneak mode, the npc would be unable to locate me. Even when not attacking, I believe the npcs are able to see you.
User avatar
Adam Baumgartner
 
Posts: 3344
Joined: Wed May 30, 2007 12:12 pm


Return to V - Skyrim