Difference between revisions of "Death check with weapon script"

no edit summary
imported>Spd1274
imported>Spd1274
Line 5: Line 5:
I am currently working on a project that requires the Player to kill an NPC, and than adds an item upon the death of the NPC. Through much trial and error, I finally ran down how to achieve this. I intend to lay it out here, for those who might want to do something similar.
I am currently working on a project that requires the Player to kill an NPC, and than adds an item upon the death of the NPC. Through much trial and error, I finally ran down how to achieve this. I intend to lay it out here, for those who might want to do something similar.


So, in this tutorial, I will be guiding you in how to do several things:
<P>So, in this tutorial, I will be guiding you in how to do several things:</P>
1. Create a Magic Effect Script that will check for the death of an NPC at the Player's hand, than add an Item to the inventory with a nice little message.
1. Create a Magic Effect Script that will check for the death of an NPC at the Player's hand, than add an Item to the inventory with a nice little message.
2. Create the item to be added, in this case, the soul of the NPC in the form of a bottled potion.
2. Create the item to be added, in this case, the soul of the NPC in the form of a bottled potion.
Anonymous user