Jump to content

Need help with scripts


Lovetomod

Recommended Posts

Right i was thinking about creating a player home (Due to boredom) its nothing fancy but what i need help it a script for a water purifyer, an item sorter and a furnace (burn metal items into scrap metal) Can anybody help me? or send me a link to a tutorial? Edited by Lovetomod
Link to comment
Share on other sites

you should do the fallout 3 geck tutorials to learn thebasics. for the waterpurifier script a simple player.removeItem xxx 1 player.addItem xxx 1 would do just fine. a sample script:

 

scn VaterpurifierSCRIPT

 

begin onActivate player

 

if player.getItemCount xxx == 1

player.removeItem xxx 1

player.addItem xxx 1

 

endif

 

end

 

the script removes 1 dirty water and adds 1 purified water replace the xxx with the id for clean and purified water. the function getItemCount checks if the player has a bottle of dirty water. you should replace the == after getItemCount with bigger than and equal to so it works if you have more than one dirty water bottle. (using my phone and cannot type that.)

 

attach the script to an activator and you are all set.

Edited by viking99
Link to comment
Share on other sites

  • Recently Browsing   0 members

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