Jump to content

Small Skyrim Scripting Help


Lutine

Recommended Posts

Hi there. I'm currently delving into making a quest(And scripting!) for Skyrim for the first time, but I'm having a difficult time finding out how to make an NPC I created to take some gold after the PC accepts buying an object(starting the quest), and how the NPC will give said item to the player. I'm not sure what to do, can't find any tutorials on that.

Any help would be appreciated! :biggrin:

Link to comment
Share on other sites

Here is a tutorial on making a quest with scripting actions such as those you speak of: Quest Loose Ends.

 

This is one of its example scripts:

 

Game.GetPlayer().AddItem(Gold001, 500) 

 

For some actions you will use RemoveItem instead of AddItem.

 

Don't forget to set the properties for each script you write.

Edited by David Brasher
Link to comment
Share on other sites

Does something like this look right to you?

 

SetObjectiveDisplayed(10) 
Game.GetPlayer().RemoveItem(Gold001, 50) 
Game.GetPlayer().AddItem(Alias_Ledger.GetReference()) 
Game.GetPlayer().AddItem(Alias_Manifest.GetReference())
Alias_SBarro.GetReference().RemoveItem(Alias_Ledger.GetReference()) 
Alias_SBarro.GetReference().RemoveItem(Alias_Manifest.GetReference()) 

 

Ingame, "S'Barro" takes the cash, the quest is started, but the Ledger and Manifest, which are referenced, stay on his body and I don't get anything.

 

EDIT: Ok, I sorted out the code and now it works. One more issue, though: I've got stuff in the log entry that's not showing up in my journal. It's just blank, and under that is my quest objective, 'Investigate the East Empire Company'. The journal should say "The documents S'Barro sold me aren't what they seem, but they aren't worthless. They're East Empire Co. shipping manifests and ledgers, and they don't add up."

Edited by Lutine
Link to comment
Share on other sites

  • Recently Browsing   0 members

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