Jump to content

Need a little help with scripting


Trestor

Recommended Posts

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 bottle

player.removeitem PrewarMoney 1 ;You give the money to the machine

player.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

  • Recently Browsing   0 members

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