Jump to content

Minor scripting issue due to inexperience


SevenBlue

Recommended Posts

Ok I fingered something out for you , hehe pun intended .

 

Running a quest script just seemed overly complicated , so I reverted back to your original attempt of using a perk with entry point : Activate

 

Not sure why it didn't work the first time , but maybe something to do with not being able to remove a corpse from a faction.

But basically what I did was give the corpse a weapon item "Finger Stump" , at the same time as giving the player the severed finger. Then checking for that item in the corpse inventory with a

not equal to comparison ( ! = ) is what keeps it from continuing to give the player fingers.

The reason I used a weapon item , is because it has a flag you can turn off "Playable" Therefore it won't show in the corpse inventory.

 

So after making your "Finger Stump" weapon item , and turning the "Playable" flag off.

Then go to your perk ... make a perk entry for "Entry Point" and select "Activate" then type in your "Button Label"

In the script field put these 2 lines ...

 

AddItem FingerStump 1

Player.AddItem SBPGFinger 1

 

 

Then in the conditions field below , select the "Target" tab and make these 3 new conditions.

 

S GetDead NONE == 1 AND

S GetInFaction SBPowderGangerBountyFaction == 1 AND

S GetItemCount FingerStump ! = 1 AND

 

 

Now when the player has that perk , you will only get the option to cut the finger once.

At least it tested out working for me no problems.

Edited by Mktavish
Link to comment
Share on other sites

  • Recently Browsing   0 members

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