Jump to content

RemoveAllTypedItems with buttons not working


Seiipher

Recommended Posts

I'm trying to make a vending machine take all of the Sarsaparilla and Nuka-Cola from the player's inventory and put them in the vending machine, but when I press the button in game to put the items in the machine nothing happens. Been at this for hours, help me please D:

scn VendingMachineScript

Begin OnActivate

showmessage VendingMachine

End

Begin MenuMode

set button to getbuttonpressed

if button == 0
   player.RemoveAllTypedItems VendingMachineOutside 0 1 47 VendingFormList
endif

if button == 1
   VendingMachineOutside.removeitem SSBottleFull 1
   Player.additem SSBottleFull 1
endif

if button == 2
   VendingMachineOutside.removeitem NukaCola 1
   player.additem NukaCola 1
endif

end
Link to comment
Share on other sites

I now have it set not to remove all vanilla "aid" items so that it only removes the Sarsaparilla and Nuka-Cola from the player's inventory, is there any way I could also make it compatible with modded "aid" items? Would I have to make a separate esp for each mod?

Link to comment
Share on other sites

  • Recently Browsing   0 members

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