MagSul Posted March 24, 2018 Posted March 24, 2018 I've an NPC who delivers dialog when interacted with. She speaks without issue and then we fade to black. During that time the original NPC is removed and a new one is placed on the dueling mat opposite the player. When the player hits 1HP, the NPC does a quick emote, says a line of dialog and then we fade to black again. While the screen is faded out, the original NPC is respawned and the one that was on the dueling mat is removed. My problem is that when the original NPC is respawned, she won't deliver the next line of dialog by herself. I've tried this two ways: First is to simply put this at the end of the script upon fading back in: //(BHVD) affect ( "npc_ella", /*@AFFECT_TYPE*/ FLUSH ) { set ( /*@SET_TYPES*/ "SET_LOOK_TARGET", "player" ); task ( "jedi_zfintro1 line 2" ) { print ( "Let me know if you're ever free for any more." ); sound ( /*@CHANNELS*/ CHAN_VOICE, "sound/chars/ella/01ella007.mp3" ); } dowait ( "jedi_zfintro1 line 2" ); } The alternate way was to make a separate script to be fired instead. Neither seems to work. Does anyone have any suggestions that may be able to help me resolve this?
Noodle Posted March 24, 2018 Posted March 24, 2018 Can't you make the NPC invisible and non-solid instead of removing and respawning it? Sometimes I get problems with NPCs because scripts don't seem to work on them when they respawn. therfiles and Droidy365 like this
Solution MagSul Posted March 25, 2018 Author Solution Posted March 25, 2018 bigphil2695, Noodle and Wasa like this
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now