I was scripting a quest where you talk to an NPC, need to kill five geckos and then talk to the same NPC to end the quest. There are no geckos spawned by this quest, the goal was to have the player find them wherever like South of Goodsprings. I don't know how to count geckos killed. I looked at the F3 quest Wasteland Survival Guide in the part for killing Mole Rats and I'm still not sure how to have the quest count critters killed. The last thing I tried was using the GetInFaction function but I didn't know how to use it properly
scn GeckosNeutralized ref HitTarget Begin ScriptEffectStart set HitTarget to GetSelf if HitTarget.getinfaction GeckoFaction == 1 if MyCompanionQuest1112.GeckosKilled < 5 set MyCompanionQuest1112.GeckosKilled to (MyCompanionQuest1112.GeckosKilled +1) endif endif end
It used to be an object script and use the blocktype gamemode. I don't completely understand how GetSelf works, just that it returns the ReferenceID of the calling reference. I also don't know what to attach the script to, if anybody can point me in the right direction I'd be thankful.