Jump to content

Help with showbartermenu (sbm) in a mod I'm trying to make


justabot5

Recommended Posts

Hi!

 

I'm trying to downsize the cheat terminal to my needs and all was good until I decided I wanted the merchant back.

 

I created an npc called Merchant (very original..) and it's ID is aaMerchant. I put a BoS T51 and 15.000 caps in his inventory.

 

So the next logical move ws to make a new line in the terminal with the Item Resut Script of:

 

forceterminalback
aaMerchantRef.sbm
or
forceterminalback
aaMerchantRef.showbartermenu
But it does nothing.

 

If I use the code: player.placeatme aaMerchant it creates a copy of him next to me and if I use sbr or showbartermenu on him, I can get him to trade with 15.000 caps and nothing else in his inventory just as wanted to.

 

What am I doing wrong?

 

Do I have to place him somewhere in the world or do I have to create a script?

And also, is there a simple tutorial?

Link to comment
Share on other sites

If the Actor is not placed in the worldspace, then a Reference-ID does not exist. The "placeatme" function is placing an instance of the "Form/Editor-ID" into the worldspace, which gives that instance a Ref-ID so you can interact with it. But prior to that, there is nothing for the script to act upon. You can initially place the Actor in some "inaccessible" location and move them to where you want them when needed.

 

No "simple tutorial". A lot of them on specific aspects of modding. (It's a complex subject.) Suggest you take a look at the following sections of the wiki "Getting started creating mods using GECK" article:. Each "section" has various tutorials linked in the beginning, in addition to "Tips" contributed by experienced mod creators:

 

* GECK Form-ID Base-ID Ref-ID and Editor-ID

* Spawning modded items

* Custom NPCs

* Scripting - "TIP Referencing Objects"

 

-Dubious-

Edited by dubiousintent
Link to comment
Share on other sites

  • Recently Browsing   0 members

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