Aller au contenu

Photo

EffectEthereal()


  • Veuillez vous connecter pour répondre
17 réponses à ce sujet

#1
henesua

henesua
  • Members
  • 3 878 messages
I don't think I understand this effect.

I am applying it to a Scry Sensor creature on spawn. And yet the creature is still visible.

        effect eEther   = EffectEthereal();
        effect eGhost   = EffectCutsceneGhost();
        effect eLink    = EffectLinkEffects(eEther, eGhost);
        effect eExtraord= ExtraordinaryEffect(eLink);
        ApplyEffectToObject(DURATION_TYPE_PERMANENT, eExtraord, oSelf); 

I added the invisibility effect when Ethereal didn't appear to be doing anything. And so the creature will behave as invisible, but I would prefer actual etherealness... invisible and untargetable to all but those with true seeing. What gives?

Modifié par henesua, 20 février 2012 - 08:56 .


#2
HipMaestro

HipMaestro
  • Members
  • 1 515 messages
Did you try EffectSanctuary()?

(There is a bug  with Etherealness when used after Imp Invis but you didn't indicate this was an issue.)

#3
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
Forget the other junk. All you need is Etherealness. Your problem may be that some things are checking for the etherealness spell id, however. This is how we do it outside of a spell:
        //give pcs a brief lull before they are attacked
        effect eEnter = SupernaturalEffect(EffectEthereal());
        SetEffectSpellId(eEnter, SPELL_ETHEREALNESS);
        ApplyEffectToObject(DURATION_TYPE_TEMPORARY, eEnter, oPC, 6.0);

I'm unsure the extent to which spell id is checked in vanilla code, but we use it extensively. The supernatural effect is just so that it cannot be restored or dispelled away.

Funky

Modifié par FunkySwerve, 20 février 2012 - 10:26 .


#4
henesua

henesua
  • Members
  • 3 878 messages
is SetEffectSpellId -- higher ground code? Or is it in one of the NWN libraries?

By the way... I believe you want an extraordinary effect so that it can not be dispelled. Supernatural persists through resting but can be dispelled.

Modifié par henesua, 20 février 2012 - 10:44 .


#5
Khuzadrepa

Khuzadrepa
  • Members
  • 188 messages

henesua wrote...
By the way... I believe you want an extraordinary effect so that it can not be dispelled. Supernatural persists through resting but can be dispelled.

I think you have that wrong. Extraordinary means it can not be dispelled, but resting removes it. Supernatural means neither resting nor dispelling removes it.

#6
henesua

henesua
  • Members
  • 3 878 messages
Hmm... interesting, I must have got my signals crossed there. I thought all magical effects could be dispelled.

#7
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages

henesua wrote...

is SetEffectSpellId -- higher ground code? Or is it in one of the NWN libraries?

It's
from NWNX structs for linux. If your problem is that the checks in
question are checking for the spell id, you can either acheive the spell
id via ActionCast with cheat cast or whatever is required, or you can
alter the checks to check for effect type, or you can alter them to check for EffectCreator, and make a custom effect creator to define the effect (and, often, to apply it as well, though that's not necessary to tag it as the effect's creator).

As I said, however, I'm not sure how much spell id is checked in vanilla nwn - most of our code with etherialness has been completely customized. It's entirely possible that you're suffering from one ot the myriad bugs related to sanc effects - including its frequent failure when applied with any kind of concealment, as another poster mentioned. If you elaborate on the problem you're having, we could probably pinpoint it somewhat.

Funky

#8
HipMaestro

HipMaestro
  • Members
  • 1 515 messages
Not to cloud this issue... but a related question... if the effect is set up as Supernatural, meaning only death will remove it, does that mean that a creature owning the Supernatural Etherealness version can commit a hostile act without breaking the effect?

Modifié par HipMaestro, 21 février 2012 - 03:00 .


#9
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
No. It's not that ONLY death will remove Su effects, its that resting, restoration, and dispelling will not.

Funky

#10
Alex Warren

Alex Warren
  • Members
  • 179 messages
henesua
if you add EffectVisualEffect(VFX_DUR_CUTSCENE_INVISIBILITY) to your code, the creature will be invisible to all PCs.

#11
FunkySwerve

FunkySwerve
  • Members
  • 1 308 messages
Oh, jeez. I completely skimmed over the fact that you were applying it to a creature. I was thinking in terms of making the ai disregard pcs - my bad. Cutscene Invis is definitely the way to go, along with CutScene Ghost so it can be walked through.

Funky

#12
_Guile

_Guile
  • Members
  • 685 messages
I love applying effects to stuff. :D

Modifié par _Guile, 21 février 2012 - 03:48 .


#13
Rolo Kipp

Rolo Kipp
  • Members
  • 2 791 messages
<fading in...>

The tricky part (other than the ones mentioned above) is that he *doesn't* want the Scry Sensor invis to all PCs. He wants it detectable with True Seeing.

invisible and untargetable to all but those with true seeing.

I'm also very interested in this as I'd like to make (assuming I figure out *how*) my "Possessed" effect behave similarly.
Edit: But I think I'm going to end up just attaching/detaching a tail for the effect. Still interested.:-)

<...and out>

Modifié par Rolo Kipp, 21 février 2012 - 04:45 .


#14
henesua

henesua
  • Members
  • 3 878 messages
I did go with Cutscene Invis and Cutscene ghost.

The way I handle detection is with an area of effect on the scry sensor which has an enter and exit script. Detection of the scry sensor is handled via my custom skill "Scry". If the sensor is detected I remove the cutscene invisibility. When the last creature leaves the area of effect I restore the cutscene invisibility.

Now... for the $25000 question. Can the sensor be targeted by area of effect spells when it has the ghost effect and cutscene invis active on it?

#15
Alex Warren

Alex Warren
  • Members
  • 179 messages

henesua wrote...

Now... for the $25000 question. Can the sensor be targeted by area of effect spells when it has the ghost effect and cutscene invis active on it?

Yes, it seems that those effects were created only for better visual experience. Ie monsters will still attack creature with cutscene invisibility (though players can't see it).

#16
HipMaestro

HipMaestro
  • Members
  • 1 515 messages

henesua wrote...
Now... for the $25000 question. Can the sensor be targeted by area of effect spells when it has the ghost effect and cutscene invis active on it?


"Targeted" or merely affected?  Many AoE spells SHOULD harm all creatures & bashable placeables/doors within range including NPCs & party members unless scripted otherwise, with or without True Seeing, but would need to guess correctly on the sensor's location without it.

Modifié par HipMaestro, 21 février 2012 - 06:36 .


#17
Shadooow

Shadooow
  • Members
  • 4 470 messages

Rolo Kipp wrote...

<fading in...>

The tricky part (other than the ones mentioned above) is that he *doesn't* want the Scry Sensor invis to all PCs. He wants it detectable with True Seeing.

improved invisibility effect is closest to this, the imp. invis won't disappear after attack, but see invis/TS will penetrate it, also creatures with TS/see invis wont get 50% concealment against the creature with ii

#18
henesua

henesua
  • Members
  • 3 878 messages

Alex Warren wrote...

henesua wrote...
Now... for the $25000 question. Can the sensor be targeted by area of effect spells when it has the ghost effect and cutscene invis active on it?

Yes, it seems that those effects were created only for better visual experience. Ie monsters will still attack creature with cutscene invisibility (though players can't see it).


Very good information. Thank you.
Looks like I'll need etherealness still or soemthing like it for the NPC side of things.