Jump to content

[LE] its possible to make script to sell or buy without opening barter menu?


Recommended Posts

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

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 papyrus

3b. 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

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_-_Form

https://www.creationkit.com/index.php?title=RemoveItem_-_ObjectReference

https://www.creationkit.com/index.php?title=AddItem_-_ObjectReference

Link to comment
Share on other sites

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_-_Form

https://www.creationkit.com/index.php?title=RemoveItem_-_ObjectReference

https://www.creationkit.com/index.php?title=AddItem_-_ObjectReference

i know that script,

not what i looking for,

but thanks, i really appreciate it.

Link to comment
Share on other sites

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 by foamyesque
Link to comment
Share on other sites

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

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

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

  • Recently Browsing   0 members

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