ClayPidgeon162 Posted January 29, 2011 Share Posted January 29, 2011 I'm looking for the appropriate script commands that would cause an NPC to be poisoned, so I guess a script command that applies an Actor Effect on a specific NPC. I'm creating a quest where one of the options to killing an NPC is poisoning their food. I'll be creating a unique poison effect for this, but I just need to know what command to use to apply it. I'd rather not use the whole "killactor" command as when I do, they tend to fly dramatically through the air as though Death punched them in the face. Thanks. Link to comment Share on other sites More sharing options...
davidlallen Posted January 29, 2011 Share Posted January 29, 2011 I have done this with a script on an actor. I spent a few minutes to look through the idle animations to find a good one: LooseMQ11PlayersDeath. When the other NPC starts the action, a script runs which does this animation, waits, does a fade to black, disables the NPC and enables a (previously disabled) corpse object. It works OK. You can see the exact details in my mod at this thread (play it and endorse it while you are there! :-). The script is DWRLavelleScript, which is an example of a "staged timer" script. It was suggested to me by rickerhk in this thread. Link to comment Share on other sites More sharing options...
rickerhk Posted January 29, 2011 Share Posted January 29, 2011 The script command to apply an actor effect is CastImmediateOnSelf http://geck.bethsoft.com/index.php/CastImmediateOnSelfLike ActorRef.CastImmediateOnSelf CazadorPoison Though the CazadorPoison effect only damages up to 150 HP, you can just make a copy of it and increase the Poison duration and/or magnitude. When the NPC's HP runs out, they just fall over dead without flying all over the place;) Link to comment Share on other sites More sharing options...
ClayPidgeon162 Posted January 29, 2011 Author Share Posted January 29, 2011 I have done this with a script on an actor. I spent a few minutes to look through the idle animations to find a good one: LooseMQ11PlayersDeath. When the other NPC starts the action, a script runs which does this animation, waits, does a fade to black, disables the NPC and enables a (previously disabled) corpse object. It works OK. You can see the exact details in my mod at this thread (play it and endorse it while you are there! :-). The script is DWRLavelleScript, which is an example of a "staged timer" script. It was suggested to me by rickerhk in this thread. That could work. The player doesn't have to be in the same cell when it happens. The NPC is in the NCR MP jail on the Strip, and you have to convince Pvt Jake Erwin to "pull a prank" on them by slipping the poison in their food, which you tell him is a laxative. Thanks for the help. Link to comment Share on other sites More sharing options...
ClayPidgeon162 Posted January 29, 2011 Author Share Posted January 29, 2011 (edited) The script command to apply an actor effect is CastImmediateOnSelf http://geck.bethsoft.com/index.php/CastImmediateOnSelfLike ActorRef.CastImmediateOnSelf CazadorPoison Though the CazadorPoison effect only damages up to 150 HP, you can just make a copy of it and increase the Poison duration and/or magnitude. When the NPC's HP runs out, they just fall over dead without flying all over the place;) And thank you again RickerHK. If only I could give more than one kudos. That'll help with an alternative method of killing them, which is to get yourself arrested, put in their cell, and shiv them through a conversation option. Edited January 29, 2011 by ClayPidgeon162 Link to comment Share on other sites More sharing options...
Recommended Posts