Jump to content

I am new to modding, need help a bit.


Recommended Posts

Posted

This is the first time I mod.

Right now I am trying to start to build a mod that which you can use in sexoutpreg for items storage and cleanse, though I don't know how to add checksums in terminals.

I need to have a checksum for Checking items in backpacks and containers, take and add items.

But I don't know how to do that.

I couldn't find those topics at GECKwiki.

If anyone know how, please help.

Posted

There is a stickied scripting help 101 thread for modding questions which all the foxy modders keep an eye on, you'll likely get more/better responses if you post there.

 

I'm not sure what you mean, so you might want to be more specific too. Maybe you want 'GetItemCount', or 'RemoveAllTypedItems'?

Posted

There is a stickied scripting help 101 thread for modding questions which all the foxy modders keep an eye on, you'll likely get more/better responses if you post there.

 

I'm not sure what you mean, so you might want to be more specific too. Maybe you want 'GetItemCount', or 'RemoveAllTypedItems'?

I know 'GetItemCount', but it seems fail in terminals

I have

 

if (container ID).getitemcount sexoutscumalien >=100

 If Player.GetItemCount (preg state item ID) == 0

  Player.removeitem caps001 100

   Player.AddItem sexoutscumtokenvagalien 100

EndIf

 

at a submenu on a desk terminal, it seems it just won't pickup the alien semen and turn it into cum and input to player. Tough I could manage to turn cums on player into jars and put it into another container.

 

Why would that happens? Was I doing something wrong?

I add the esp file to the post, as if any one want to take a look.

SO-FertzMachine.esp

Posted

I don't know exactly what is the issue because the small scripts I use in terminals usually work, and I can't open the esp right now.

Anyway if you think the terminal could be the issue, you could use a workaround, create a fake quest with a script attached

inside the terminal you simply set a variable to 1 (set FakeTerminalQuest.ScriptSTART to 1)

then you put all the rest of your code inside that script, behind a if ScriptSTART condition, in a GameMode block

 

so...

scn FakeTerminalQuest
int ScriptStart
.
.
.
begin GameMode

if ScriptSTART

  if (container ID).getitemcount sexoutscumalien >=100
   If Player.GetItemCount (preg state item ID) == 0
    Player.removeitem caps001 100
     Player.AddItem sexoutscumtokenvagalien 100
  EndIf

endif

end

You should also force to close the terminal after that in game you click on that entry, because in this way you are not able to do anything else than enabling the buy of 100 of those things.

By the way if you didn't do that on the script, you should also check GetItemCount for those 100 caps and maybe showmessage you don't have enouch caps, etc.

Posted

Nevermind, I know why I fail to run code in terminals now, I input them manually by type condition line into the file result script box rather then select them by item condition.

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

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