Jump to content

Beer Brewery help


dabeatlove

Recommended Posts

I want to make a activator that give beer in exchange for a empty bottle and cap but i don't know anything about scripts, can someone, who already did something similar, explain how is this done step by step please? :thanks:
Link to comment
Share on other sites

  • 4 weeks later...
I want to make a activator that give beer in exchange for a empty bottle and cap but i don't know anything about scripts, can someone, who already did something similar, explain how is this done step by step please? :thanks:

 

 

You need a script something like this

 

scn ;add the name you want for the script after the letters scn

begin on activate :script starts when you activate whatever is dispensing the beer

if player.(GetItemCount emptybottle == 1) && (getitemcount bottlecap == 1) ;checks if the player has the required objects

player.RemoveItem emptybottle 1 ;these three lines swap the empty bottle and cap for the beer

player.RemoveItem bottlecap 1

player.AddItem beer 1

endif

end

 

If you want the activator to do anything if you don't have the required objects or dispense more than one beer at a time you'll need to add to the above script, but that should get you started at least.

Link to comment
Share on other sites

Archived

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

  • Recently Browsing   0 members

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