ainslec / adventuron-issue-tracker

Adventuron Issues Tracker
4 stars 0 forks source link

:set_subject1 doesn't work #518

Closed ChristopherMerriner closed 1 year ago

ChristopherMerriner commented 1 year ago

It would be nice if it did! This is an undocumented (secret?) function that, I think, should allow an object to be specified as subject1. But it doesn't work. In the below, GET APPLE should parse as GET BANANA, but debug_sentence reveals that doesn't happen:

start_at = my_location
locations {
   my_location : location "You are in a room.";
}
objects {
  apple : object "apple"at = "my_location" ;
      orange : object "orange"at = "my_location" ;
         banana: object "banana"at = "my_location" ;
            peach: object "peach"at = "my_location" ;
}
on_command {
: match "get apple"  {
   :set_subject1 "banana";
   :debug_sentence;
}
}

Output:

You are in a room.

You see apple, orange, banana and peach.

GET APPLE

verb : get (typed:get)

noun1 : apple (typed:apple)

universal1 : [apple]

known1 : [apple]

s1 : apple

s2 : unknown

You take apple.

ainslec commented 1 year ago

Will be fixed in upcoming beta 78.

ChristopherMerriner commented 1 year ago

Thanks Chris!