Jump to content

Water Purifier Script help


DrPootis

Recommended Posts

I have a script for a water purifier that should turn all of the player's bottles of dirty water in their inventory to purified ones.

However, I don't know how to tell it to take all of the player's dirty bottles & replace them, and I'm also having problems with compiling the script:

 

scn BunkerPurifierScript

short Button

begin OnActivate

if IsActionRef player

	ShowMessage BunkerPurifierMsg

endif

end

begin MenuMode 1001

	set Button to GetButtonPressed

	if ( Button == 1 )
		if ( player.GetItemCount waterunpurified >= 1 )
			player.removeitem waterunpurified 1
			 player.additem waterpurified 1

		endif

end

 

Any suggestions?

Edited by DrPootis
Link to comment
Share on other sites

  • Recently Browsing   0 members

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