ZenethXR71 Posted January 11, 2013 Share Posted January 11, 2013 I'm creating a quest but I need to know how to make the NPC give the player an item after pressing a certain dialog option. Please help Link to comment Share on other sites More sharing options...
Xaranth Posted January 11, 2013 Share Posted January 11, 2013 put 'player.additem ItemID int:Count' in the result script for that dialogue option. Link to comment Share on other sites More sharing options...
ZenethXR71 Posted January 11, 2013 Author Share Posted January 11, 2013 put 'player.additem ItemID int:Count' in the result script for that dialogue option. Do I include the 'int:'? Link to comment Share on other sites More sharing options...
Xaranth Posted January 11, 2013 Share Posted January 11, 2013 No, I was emulating the GECK wiki. Link to comment Share on other sites More sharing options...
ZenethXR71 Posted January 11, 2013 Author Share Posted January 11, 2013 The id? As in 002fs024? (That's just an example ID, I dunno if it's anything) Link to comment Share on other sites More sharing options...
Xaranth Posted January 11, 2013 Share Posted January 11, 2013 Since your not using the ingame console, you can use the EditorID. There's noting stopping you from using the FormID, but there's no need to, either. Link to comment Share on other sites More sharing options...
ZenethXR71 Posted January 11, 2013 Author Share Posted January 11, 2013 Ok. I'm using it for a key.So it would be, player.additem 00FirstBossKey 1? (00FirstBossKey is the editor id) Link to comment Share on other sites More sharing options...
Xaranth Posted January 11, 2013 Share Posted January 11, 2013 Yes, but you need to change the editorID. If it starts with a number, the compiler thinks it's a FormID. And I was wrong earlier; you can't use the formID in scripts because it changes depending on the mod's position in the load order. So you need to rename your key so that it doesn't start with a number. If you still want it to be at the top of the list, use AAA or something to prefix it. Link to comment Share on other sites More sharing options...
ZenethXR71 Posted January 11, 2013 Author Share Posted January 11, 2013 Thanks you've helped a lot. Just one more question if you don't mind.How to I make a quest objective to kill an enemy? Link to comment Share on other sites More sharing options...
Xaranth Posted January 11, 2013 Share Posted January 11, 2013 Set the objective target to the enemy's reference and make its condition GetDead != 1 Link to comment Share on other sites More sharing options...
Recommended Posts