how to use actor keyword to award xp on killing an actor

Post » Tue Aug 26, 2014 1:19 pm

so i'm redoing how the player levels, and setting it so that character level xp is gained from killing actors, and isn't affected by skill increases.

i'm also redesigning the leveled enemies lists and assigning keywords to more difficult enemies. (such as Rank4, etc)

i want to use these keywords in a script to award XP to the player when actors with the keywords are killed.

for instance, if the player kills an actor with keyword Rank4, they will gain 1000 xp points, as opposed to 250 for a Rank1.

however, OnDeath() events don't seem to trigger properly

someone suggested started and ending a storyline manager etc. but this would prevent the character from gaining xp if they killed 2 or more actors in a 5 second period.

someone else mentioned Get.Dead() but i'm not sure how to use this properly.

i just need the script to get any and all kills performed by the player, and check which keyword the actor had.

any ideas / explanations appreciated

User avatar
Jessica Lloyd
 
Posts: 3481
Joined: Fri Aug 25, 2006 2:11 pm

Post » Tue Aug 26, 2014 5:30 am

See http://skyrimmw.weebly.com/skyrim-modding/ondeath-vs-ondying-skyrim-modding-article.

User avatar
Erin S
 
Posts: 3416
Joined: Sat Jul 29, 2006 2:06 pm


Return to V - Skyrim