JebusJM Posted May 18, 2011 Posted May 18, 2011 I want to make a script and attach it to a dialog that will remove an NPC from the same module I'm in, but remove him during the conversation without the annoying "Global Fadeout". Thanks.
TimBob12 Posted May 18, 2011 Posted May 18, 2011 What do you mean global fadeout and have you tried void main() { object NPC = GetObjectByTag("your_npc_tag"); DestroyObject(NPC, 0, FALSE, 0, 0); } The FALSE there stops the fade if thats what your looking for.
JebusJM Posted May 18, 2011 Author Posted May 18, 2011 Thanks, TimBob, I'll try it later on tonight. This script stops the party selection popping up when I recruit my NPC: Quote void main() { ActionPauseConversation(); object oGoodbye; oGoodbye = GetObjectByTag("my_npc_tag"); SetGlobalFadeOut(1.0, 0.5); DelayCommand(1.0, DestroyObject(oGoodbye)); DelayCommand(1.0,SetGlobalFadeIn(0.7,0.0)); ActionResumeConversation(); }
JebusJM Posted May 18, 2011 Author Posted May 18, 2011 The script gave me a few errors, but for others looking, I found this one to work perfectly: Quote void main() { object oGoodbye; oGoodbye = GetObjectByTag("npc_tag_here"); DelayCommand(1.0, DestroyObject(oGoodbye)); } Thanks TimBob.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.