Trex Posted February 28, 2012 Share Posted February 28, 2012 I'm trying to get a character to look a bit like a Force ghost, similar to the appearance of Ajunta Pall in Kotor 1. I'm using this script in the ScriptHeartbeat of the utc void main() { object oNPC2=GetObjectByTag("fakeiilo"); ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_PRO_FORCE_AURA), oNPC2); } ...but the effect only turns off and on (one second on, then one second off, repeats). Can anyone help me to make it more permanent, or provide an alternate way to create a ghost like effect? Link to comment Share on other sites More sharing options...
newbiemodder Posted February 28, 2012 Share Posted February 28, 2012 I used this script for a force-ghost once. I used a blue shield thingy...maybe it could help you in some way. void main() { CreateObject(OBJECT_TYPE_CREATURE, "N_GabSnow", Location(Vector(46.30433,-53.49882,00.00), 00.00)); object oNPC=GetObjectByTag("GabrielSnowe"); effect eBlueShield = EffectVisualEffect(VFX_DUR_SHIELD_BLUE_01); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBlueShield, oNPC); return; } Link to comment Share on other sites More sharing options...
Istorian Posted February 28, 2012 Share Posted February 28, 2012 I noticed that Ajunta Pall in the game has special OnSpawn and OnUserDefine scripts, but his OnHeartbeat script is the standarized. And that makes sense because you want the effect to be applied only once and not on every heartbeat, right? So if you modify your NPC's OnSpawn script to add these two lines I think it would work. object oNPC2=GetObjectByTag("fakeiilo"); ApplyEffectToObject(DURATION_TYPE_PERMANENT, EffectVisualEffect(VFX_PRO_FORCE_AURA), oNPC2); If not, perhaps the OnUserDefine script needs some working, too. EDIT: Or to add newbiemodder's script, it works too. But I really think it shouldn't be in the OnHeartbeat script. Link to comment Share on other sites More sharing options...
Trex Posted February 28, 2012 Author Share Posted February 28, 2012 Thanks fellas. newbiemodder's script pretty much did the trick. The aura still fades in and out a little, but not nearly as much as it did before. I also tweaked the script a little to add the 'stuff' that appears whenever you gain LS or DS points. I think it looks pretty cool. Here's the slighty altered script I used for those who may read this thread in the future: void main() { object oNPC6=GetObjectByTag("fakevimack"); effect eBlueShield = EffectVisualEffect(VFX_DUR_SHIELD_BLUE_01); effect redstuff = EffectVisualEffect(VFX_IMP_LIGHT_SIDE); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBlueShield, oNPC6); ApplyEffectToObject(DURATION_TYPE_PERMANENT, redstuff, oNPC6); return; } Link to comment Share on other sites More sharing options...
Scorge Posted February 28, 2012 Share Posted February 28, 2012 This script will come in handy Link to comment Share on other sites More sharing options...
Trex Posted February 28, 2012 Author Share Posted February 28, 2012 A small alteration for those wanting a dark side ghost void main() { object oNPC6=GetObjectByTag("fakevimack"); effect eBlueShield = EffectVisualEffect(VFX_DUR_SHIELD_RED_01); effect redstuff = EffectVisualEffect(VFX_IMP_DARK_SIDE); ApplyEffectToObject(DURATION_TYPE_PERMANENT, eBlueShield, oNPC6); ApplyEffectToObject(DURATION_TYPE_PERMANENT, redstuff, oNPC6); return; } Looks like this and intermittently gives off dark force energy. Link to comment Share on other sites More sharing options...
Scorge Posted February 29, 2012 Share Posted February 29, 2012 Wow, that looks awesome. Im going to try it out on my mods. Link to comment Share on other sites More sharing options...
darth-ackbar Posted February 29, 2012 Share Posted February 29, 2012 what the hell is that thing on the left? Link to comment Share on other sites More sharing options...
UltimateHK47 Posted February 29, 2012 Share Posted February 29, 2012 what the hell is that thing on the left? Perhaps the, "True," Sith Link to comment Share on other sites More sharing options...
darth-ackbar Posted February 29, 2012 Share Posted February 29, 2012 Apparently it's a very deformed true sith. Link to comment Share on other sites More sharing options...
Silveredge9 Posted February 29, 2012 Share Posted February 29, 2012 Another way to create an authentic ghost effect is to give the texture a layer mask which covers the whole texture and then fiddle around with the opacity until you get something which looks cool. I did it with an Ajunta Pall reskin I released a few years back. Link to comment Share on other sites More sharing options...
Scorge Posted February 29, 2012 Share Posted February 29, 2012 what the hell is that thing on the left? Play "The Jedi Master;s" TC mod. And if I spelled it right, its the "True Syyth" Link to comment Share on other sites More sharing options...
UltimateHK47 Posted February 29, 2012 Share Posted February 29, 2012 Play "The Jedi Master;s" TC mod. And if I spelled it right, its the "True Syyth" Yup, forgot that spelling Link to comment Share on other sites More sharing options...
darth-ackbar Posted February 29, 2012 Share Posted February 29, 2012 oh thanks, I'm still playing through TJM. Thanks for the script as well, that will come in handy Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.