Mutantpizza Posted September 8, 2013 Share Posted September 8, 2013 This is probably a very, very noob question, but... I'm trying to update a quest once the player kills an enemy, but can't figure out how to accomplish this. Is there an easy way to trigger a script on creature death? Link to comment Share on other sites More sharing options...
mcgoy Posted September 8, 2013 Share Posted September 8, 2013 I don't know the answer to this question, BUT I know where to look because I've seen it before :laugh: Check the way the creatures/NPCs in the Fade Nightmares for the Companions are programmed/scripted. If I remember correctly, they are identified as being in a 'group'. When the 'group' is killed, the condition is updated, causing the script to run. A group can be composed of one. I haven't tried it so I don't know, but that is where I would go for an example of how to get it to work. Link to comment Share on other sites More sharing options...
LadyHonor Posted September 10, 2013 Share Posted September 10, 2013 In the area script you need to add the EVENT_TYPE_TEAM_DESTROYED. Give the creature(s) and team in your constants header. Then set the team destroyed event to flag the creature has been killed. I would post a sample script but i cant because i have to use my cell phone to post. If you would like me to email you a sample message me your email address and i'll be glad to email it to you. Link to comment Share on other sites More sharing options...
Mutantpizza Posted September 10, 2013 Author Share Posted September 10, 2013 Thanks for the responses! I managed to get it working using that event. Of course, afterwards I found out there's a tutorial on how to do this exact thing:http://social.bioware.com/wiki/datoolset/index.php/Scripting_tutorial Link to comment Share on other sites More sharing options...
Recommended Posts