Jump to content

Scripting Help


godofbreadsticks

Recommended Posts

I've been dabbling with the GECK for a while now, and Ive decided I would like to make a mod. The mod I want to make will give you special weapons as rewards, and I would like to make a special axe that whenever you kill someone with it, it spawns a head in their inventory. Ive already made the head an item, but I still need a script to make killing someone with it spawn a head. The current script I have is something like this:

 

scn HeadHunterScript

 

Begin OnDeath

AddItem Head 1

End

 

And then from that script, I've made a spell.

 

I'm not sure if that's even close to what I need. I could probably figure it out eventually, but when it doesn't work, Ill have no idea what the problem is, or if it's even possible. Any help would be greatly appreciated, thanks!

Link to comment
Share on other sites

I have figured out the problem. The new script is something along the lines

 

scn HeadHunterScript

 

Ref HeadHunterT

 

Begin OnHit

 

Set HeadHunterT to GetOwnerLastTarget

HeadHunterT.GetItemCount HeadHuntedMale

If HeadHunterT.GetItemCount HeadHuntedMale == 0

HeadHunterT.AddItem HeadHuntedMale 1

Endif

End

 

And then I put the script right on the weapon.

Edited by godofbreadsticks
Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...