dabeatlove Posted February 19, 2009 Share Posted February 19, 2009 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 More sharing options...
Willa2112 Posted March 18, 2009 Share Posted March 18, 2009 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 scnbegin 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 objectsplayer.RemoveItem emptybottle 1 ;these three lines swap the empty bottle and cap for the beerplayer.RemoveItem bottlecap 1 player.AddItem beer 1 endifend 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 More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.