I see some promising information http://www.creationkit.com/RemoveItem_-_ObjectReference, but I am unclear as to how exactly to set this up in a new script. Can someone help please?
Game.GetPlayer().RemoveItem(Gold001, 500)appears slightly different than http://www.creationkit.com/RemoveItem_-_ObjectReference
Game.GetPlayer().RemoveItem(GoldBase, 500)[both edited to remove 500 gold, for my purposes]. I cannot get either of them to work as http://www.creationkit.com/Bethesda_Tutorial_Dialogue#Scripting_Dialogue. This is the compile result I get in both cases:
Starting 1 compile threads for 1 files...Compiling "TIF__02001DA8"...d:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\TIF__02001DA8.psc(18,28): variable Gold001 is undefinedNo output generated for TIF__02001DA8, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on TIF__02001DA8
Script contentsScriptname PayReparations extends Quest MiscObject Property Gold Auto Game.GetPlayer().RemoveItem(GoldBase, 500)Compiler output:Starting 1 compile threads for 1 files...Compiling "PayReparations"...d:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\PayReparations.psc(5,4): no viable alternative at input '.'No output generated for PayReparations, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on PayReparations
Script contentsScriptname PayReparations extends Quest MiscObject Property Gold Auto Game.GetPlayer().RemoveItem(Gold001, 500)Compiler output:Starting 1 compile threads for 1 files...Compiling "PayReparations"...d:\steam\steamapps\common\skyrim\Data\Scripts\Source\temp\PayReparations.psc(5,4): no viable alternative at input '.'No output generated for PayReparations, compilation failed.Batch compile of 1 files finished. 0 succeeded, 1 failed.Failed on PayReparations
Game.GetPlayer().RemoveItem(GoldBase, 500)or
Game.GetPlayer().RemoveItem(Gold_001, 500)failed to compile. I tried several other iterations of the code as well ("Gold" instead of "GoldBase" or "Gold_001," etc.), to no avail.
MiscObject Property Gold Autointo the script fragment? If not, would you mind giving me an example of what you mean? I'm not sure of the proper syntax of these commands, when used in the script fragments window.
MiscObject Property Gold Autointo the script fragment? If not, would you mind giving me an example of what you mean? I'm not sure of the proper syntax of these commands, when used in the script fragments window.