This was my Scripting 3 module for my final year of University. We were tasked with creating a game within the Neverwinter Nights 2 editor, and I chose to create battleships. This was done using the in engine HTML-esque GUI editor, passing into an 'AI' script for the enemy player and spawning appropriately coloured rugs for areas where ships were placed, misses and hits.