Jump to content

GetItemCount now bugged with Form Lists ?


CharIatan

Recommended Posts

Hello !

 

It seems my Fallout NV and Geck suddenly produce the oddest results from GetItemCount when used with a Formlist.

 

What i intended:

Player puts Items from the Formlist 01BoltYield1 into the container MMInputREF

The container converts each item of the Formlist into 1 piece of 01HandfulBolts

 

What actually happens:

The Script shown below adds 2000x 01HandfulBolts even if MMInputRef is completely empty.

If GetItemCount 01BoltYield1 is replaced with GetItemCount [item-ID], it works, but is rather inconvenient.

 

 

float Timer

short Working

short BoltAmount

 

Begin OnActivate

 

If Working == 0

;Set Scrap Credits

set BoltAmount to (MMInputREF.GetItemCount 01BoltYield1)

set Timer to 5

MMInputREF.lock 255

MMInputREF.playsound3d 01MaintMachineSound01

Set Working to 1

endif

End

 

 

Begin GameMode

 

If Working == 1

If Timer > 0

Set Timer to Timer - GetSecondsPassed

else

MMInputREF.playsound3d 01MaintMachineSound02

MMInputREF.removeItem 01BoltYield1 9999

MMInputREF.additem 01HandfulBolts BoltAmount

MMInputREF.unlock

set Working to 0

set BoltAmount to 0

endif

endif

End

 

Can someone help ?

Edited by Foar
Link to comment
Share on other sites

Thank you very much for your time Quetzlsacatanango, the problem has now resolved itself.

 

The problem simply disappeared as i unloaded the mod, made a clean save without it, and activated it again.

I guess that the Reference of my MMInputREF was somehow bugged in the previous save, strange thing.

Link to comment
Share on other sites

  • Recently Browsing   0 members

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