virginharvester Posted May 7, 2018 Share Posted May 7, 2018 hi, sorry for my bad english,i like to make script to sell or buy using papyrus script : while (Game.GetPlayer().GetItemCount(WeapTypeSwordKeyword) >= 1) sellitems(WeapTypeSwordKeyword,1,Ri'saad) ; something like thisendwhile its possible? Link to comment Share on other sites More sharing options...
Kaiouti Posted May 7, 2018 Share Posted May 7, 2018 I'm no programming hobbyist. But... I'll give it a guess. 1 It is PROBABLY possible yes... 2 Firstly I would think you need TES:Morrowind SCRIPT EXTENDER found here--->https://www.nexusmods.com/morrowind/mods/45468 ---> READ up/study up the tes Sscript Extender if you want to pursue learning it yourself 3 If you have skilz with The creation kit? Do you have? ---->>> http://en.uesp.net/morrow/editor/mw_tesck.shtml ---->>> http://elderscrolls.wikia.com/wiki/Creation_Kit ---> Learn construction kit 4 I Think that what you typed is a nice way to show your understanding of ~ (tilde key) ~ maybe? tell me :-) Link to comment Share on other sites More sharing options...
virginharvester Posted May 7, 2018 Author Share Posted May 7, 2018 1.how?2.why morrowind? not skyrim?3.yes i have (sort of), that why i ask if there any formula or syntax like that in papyrus3b. what is "construction kit", its more advance "than creation kit"?4.my english its not good, i dont understand what you talking about,4b.if you talking about "console command" using "~ (tilde key)", it available? there some mod using console command in papyrus, what command are you talking about? Link to comment Share on other sites More sharing options...
FrankFamily Posted May 7, 2018 Share Posted May 7, 2018 I don't think there's a specific "sell/buy this item to this npc" type of function but you can remove/add the items and remove/add gold. https://www.creationkit.com/index.php?title=GetGoldValue_-_Formhttps://www.creationkit.com/index.php?title=RemoveItem_-_ObjectReferencehttps://www.creationkit.com/index.php?title=AddItem_-_ObjectReference Link to comment Share on other sites More sharing options...
virginharvester Posted May 8, 2018 Author Share Posted May 8, 2018 I don't think there's a specific "sell/buy this item to this npc" type of function but you can remove/add the items and remove/add gold. https://www.creationkit.com/index.php?title=GetGoldValue_-_Formhttps://www.creationkit.com/index.php?title=RemoveItem_-_ObjectReferencehttps://www.creationkit.com/index.php?title=AddItem_-_ObjectReferencei know that script,not what i looking for,but thanks, i really appreciate it. Link to comment Share on other sites More sharing options...
foamyesque Posted May 8, 2018 Share Posted May 8, 2018 (edited) There's no easy way to do it that I'm aware of, and trying to manually replicate the functions of the barter menu with scripting runs into a lot of problems if you want to take into account things like player-created or -modified items and Speech skill/perks. Is there some particular reason you do not want to use the standard barter menu? Edited May 8, 2018 by foamyesque Link to comment Share on other sites More sharing options...
virginharvester Posted May 8, 2018 Author Share Posted May 8, 2018 There's no easy way to do it that I'm aware of, and trying to manually replicate the functions of the barter menu with scripting runs into a lot of problems if you want to take into account things like player-created or -modified items and Speech skill/perks. Is there some particular reason you do not want to use the standard barter menu?i see this video : so i think, if this feature is common syntax or something, Link to comment Share on other sites More sharing options...
foamyesque Posted May 8, 2018 Share Posted May 8, 2018 I'm not familiar with that mod but I *suspect* what is happening is a combination of (at least) RemoveItem, AddItem, GetActorValue, and AdvanceSkill functions set up to try and mimic actual bartering. If the mod in question has source files included you could download it and look at those, or you could try contacting the mod author directly. Link to comment Share on other sites More sharing options...
virginharvester Posted May 8, 2018 Author Share Posted May 8, 2018 I'm not familiar with that mod but I *suspect* what is happening is a combination of (at least) RemoveItem, AddItem, GetActorValue, and AdvanceSkill functions set up to try and mimic actual bartering. If the mod in question has source files included you could download it and look at those, or you could try contacting the mod author directly.contacting the mod author directly. is like i something i must do,i though it is standard syntax that everybody know,anyway, thanks, i appreciate it Link to comment Share on other sites More sharing options...
Recommended Posts