Jump to content

Soda Vending Machine Script


cain071546

Recommended Posts

I have a script for nuka cola machines that makes them actually vend soda.

 

this is a modders Resource and Tutorial.

 

the Nuka Machine sells Ice Cold Nuka Cola.

 

the Sarsaparilla Machine Sells normal soda.

 

soda costs 10 caps and machine has a unlimited ammount of soda.

 

you will need BSAopt to extract the original meshes from your meshes.bsa http://www.nexusmods.com/skyrim/mods/247/?

 

copy them to your data folder.

 

keep the file paths intact. ie: data/meshes/clutter/vendingmachine

data/meshes/clutter/ssvendingmachine

 

 

 

 

INSTRUCTIONS:

 

1) create a new activator.

 

2) point it to the vending machine mesh.

 

3) add one of these scripts to the vending machine.

 

4) save your plugin and then delete the meshes (it will look for them in the original meshes.bsa) as long as you keep the file paths the same it will work.

 

Here is the Nuka script.

SCN AAAVENDINGMACHINEScript1

Begin OnActivate

if IsActionRef player == 1
Player.additem MS05IceNukaCola 1
Player.removeitem Caps001 10

Endif

END

And here is the Sarsaparilla script.

SCN AAAVENDINGMACHINEScript2

Begin OnActivate

if IsActionRef player == 1
Player.additem SSBottleFull 1
Player.removeitem Caps001 10

Endif

END

Have Fun Modding!

Edited by cain071546
Link to comment
Share on other sites

  • Recently Browsing   0 members

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