In reaction, Gilbert assigned them to different characters and story moments depending on what type of comedy was required.[2] Grossman believed that this benefited the game's writing, as he and Schafer "were all funny in slightly different ways, and it worked well together".[19] Schafer and Grossman wrote most of the dialogue while they were programming the game; as a result, much of it was improvised.[3] Some of the dialogue was based on the designers' personal experiences, such as Guybrush's line "I had a feeling in hell there would be mushrooms", which came from Schafer's own hatred of fungi.[4]