ainslec / adventuron-issue-tracker

Adventuron Issues Tracker
4 stars 0 forks source link

[BUG] Compass Directions do not update when switching themes. #453

Open nww02 opened 3 years ago

nww02 commented 3 years ago

If I have two zones in my game, where I need (say) Fore, Aft, Starboard, Port in one zone and "N,S,E,W" in another zone, I should be able to use a theme. However, when changing the theme certain things don't change... The colours are glitchy and the compass directions never switch.

start_at    = ship
start_theme = ship_theme

themes {

   ship_theme : theme {

   colors {
      paper = #600
   }

       system_messages {
         compass = [fore,northeast,starboard,southeast,aft,southwest,port,northwest,up,down,enter,leave]
         compass_short = [f,ne,s,se,a,sw,p,nw,u,d,enter,leave];

      }
   }

   land_theme : theme {

   colors {
      paper = #006
   }
          system_messages {
         compass = [north,northeast,east,southeast,south,southwest,west,northwest,up,down,enter,leave]
         compass_short = [n,ne,e,se,s,sw,w,nw,u,d,enter,leave];

      }
   }
}

on_command {
   :mask{
      :if (is_at "land") {:set_theme "land_theme";}
      :if (is_at "ship") {:set_theme "ship_theme";}
   }
}

locations {
   ship : location "You are on a ship. The gangplank is to PORT.";
   land : location "You are on the jetty. The ship is to the EAST.";
}

connections {
   from, direction, to = [
      ship,west,land
   ]
}