You don't have the mainroom={} tps if you look at your script the "mainroom={} is empty. Here is my script for an example:
mainroom= {
[2001] = {pos={x=301, y=174, z=15}, value=1, text="Entering The Crystal Caves"},
[2002] = {pos={x=431, y=220, z=15}, value=2, text="Entering The Blood...