hi,
i'm developing a module for a pw incorporating some p&p spells, many of which are detects. currently, i've written these so they return textual information using SendMessageToPC(). what i'd like to do is give visual feedback; for example, detect evil would highlight all evil character in a red glow. i don't want this to be visible to all players, however; just the player whose character cast the spell. i've heard there's a way to limit the effects of some vfx so they appear to some players and not others -- is this true? if so, how would i do that?
thanks.
restrict vfx to certain clients ?
Débuté par
xorbaxian
, sept. 19 2013 03:19
#1
Posté 19 septembre 2013 - 03:19
#2
Posté 19 septembre 2013 - 03:29
Not feasible, as far as I know. All the approaches I know of to do this involve the client having or not having certain files. HG's approach is to display one vfx to people who have our optional hak and who have toggled !enhmode on, and a specified alternate vfx to those who don't. More typical approaches involve one having one 2da, and another a modded 2da. Might be possible with the Client Extender (NWNCX), but I suspect not.
Funky
Funky
#3
Posté 19 septembre 2013 - 10:05
well, i was afraid of that. thanks for the confirmation!
#4
Posté 19 septembre 2013 - 03:34
I use the Windows version of nwnx_funcs (a NWNX2 plugin), which has a function that displays a (non-duration) VFX for a single PC at a specified position.
// Applies a visual effect at a specified location that only oPC can see
// This only works with instant visual effects (VFX_FNF_*, VFX_IMP_*)
void NWNXFuncs_ApplyVisualEffectForPC(object oPC, int nVFX, vector vPos)
I use this for my PW's paladins' ability to detect evil and for multiple other uses.
// Applies a visual effect at a specified location that only oPC can see
// This only works with instant visual effects (VFX_FNF_*, VFX_IMP_*)
void NWNXFuncs_ApplyVisualEffectForPC(object oPC, int nVFX, vector vPos)
I use this for my PW's paladins' ability to detect evil and for multiple other uses.
#5
Posté 19 septembre 2013 - 09:30
Oh boy. I never thought I'd see the day I envied a win nwnx user.
Now, to convince someone to add the lin version... 
Thanks,
Funky
Thanks,
Funky
#6
Posté 22 septembre 2013 - 12:30
It's in nwnx_funcsext.FunkySwerve wrote...
Now, to convince someone to add the lin version...
Modifié par Squatting Monk, 22 septembre 2013 - 12:32 .
#7
Posté 22 septembre 2013 - 01:09
Ah, many thanks. Looks like I'm over a year out-of-date on linux nwnx plugins.
Funky
Funky
#8
Posté 22 septembre 2013 - 06:07
These are the kinds of things that could go onto the NWNX2 page at the community site. Is there a forum/documentation/etc. link somewhere? The Linux section is rather lacking.Squatting Monk wrote...
It's in nwnx_funcsext.FunkySwerve wrote...
Now, to convince someone to add the lin version...





Retour en haut







