Trestor Posted July 13, 2012 Share Posted July 13, 2012 I want to make a mod which makes some vendingmachines sell you nuka cola or SS-bottles. I think part 2 is wrong scn VendingScriptSS begin onactivate ;the vendingmachine is activated ShowMessage VendingSSScript ;The Menu appeares. end begin GameMode set Button to GetButtonPressed if (Button == 0) ;You buy a bottleplayer.removeitem PrewarMoney 1 ;You give the money to the machineplayer.additem SSBottleFull 1 ;You get a bottle of SS elseif (Button == 1) ;You break up the Machine activate ;The container-screen appears endif end ;Button 3 only breaks up the action Sorry for my bad english Link to comment Share on other sites More sharing options...
viennacalling Posted July 13, 2012 Share Posted July 13, 2012 You have to declare the variable Button in your script. scn VendingScriptSS short Button ...rest of script Link to comment Share on other sites More sharing options...
Recommended Posts