- I've created a global with a value of 0 and called it "LoDVampsKilled".
- I've made my weapon and named it "LoDSword"
- I've Created a quest called LoDTrackerQuest, changed event to Kill Actor Event, and unticked Run Once, and then created one stage of 0, ticked Start up and Shut down and made an empty ENTRY.
- Created two Alias', the first "VictimAlias" with fill type as Find Matching Reference, from event, KillActor. Then Event Data, Victim. And set Match conditions for each vampire race.
- The second Alias I've named "KillerAlias" identical to victim with the exception of Event data which is set to Killer, and conditions which there is 1, GetEquipped with "LoDSword" specified.
- Now on stage 0 of my quest I've made a new property in Papyrus Fragment, it's type is Global, I've named it "LoDVampsKilled" and then set it's value to my Global of the same name.
- Entered the following into fragment:
if alias_KillerAlias.GetReference() == Game.GetPlayer()LoDKillCount.SetValueInt((LoDKillCount.GetValue() as int)+1)Debug.Notification(LoDKillCount.GetValueInt())endifstop()-And assuming I haven't forgotten everything, it works! And hopefully if anyone needed this, I've saved some time.
Hi there, I've been trying to figure this out myself based on tutorials and questions somewhat relating to mine but I'm at a wall right now and not sure where I go from here.
I'm attempting to write a script that counts the amount of vampires killed with a custom weapon that I can then scale a perk or enchantment effect with, but first thing's first, vicious vampire murder.
Scriptname LoDTracking extends ActorInt Property VampsKilled Auto = 0 ;Stores how many vampires have been killed with LoDEvent OnDeathIf Race HasKeyword (Vampire)VampsKilled = VampsKilled + 1ElseEndIfEndEventThis is what I have right now, I'm sure it's laughably wrong all over but be gentle.
Don't get me wrong, I don't want anyone to write my entire script for me, but I could really use some helpful direction with this, and the tutorials I've found aren't pointing me the right way it seems.
Should I be using GetRace? And how would I use that here?
Thanks for any help!
EDIT: Got rid of my COMPLETELY wrong message section, let's pretend that never happened.