ainslec / adventuron-issue-tracker

Adventuron Issues Tracker
4 stars 0 forks source link

Adventuron hangs if calling : become from on_startup {} or on_debug {} #472

Closed ainslec closed 2 years ago

ainslec commented 2 years ago

Adventuron hangs if calling : become from on_startup {} or on_debug{}.

Demonstrated here:

start_at    = my_location
protagonist = bill
locations {
   my_location : location "You are in a room." ;
}

objects {
   fred : character "fred" at = "my_location" listed = "true";
   bill : character "bill" at = "my_location" listed = "true";
}

on_startup {
   : become "fred";
}

on_command {
   : match "switch _"  {
      : if (protagonist() == "fred") {
         : become "bill";
         : print "You are now Bill" ;

      }
      : else {
         : become "fred";
         : print "You are now Fred" ;
      }
      : press_any_key ;
      : redescribe;
   }
}

themes {
   my_theme : theme {
      lister_objects {
         include_characters = true
      }
   }
}
ainslec commented 2 years ago

Fixed in beta 75c.