ainslec / adventuron-issue-tracker

Adventuron Issues Tracker
4 stars 0 forks source link

Rion - Allow complex attributes prior to object body content #469

Closed ainslec closed 2 years ago

ainslec commented 2 years ago

Rion related issue is leading to some confusion for users of Adventuron

Darren Miller — Today at 21:42 Things I've tried:

: move numeric_dir=dir_left
: move numeric_dir=(dir_left)
: move numeric_dir="{(dir_left)}""
: move numeric_dir={(dir_left)}
: move numeric_dir->(dir_left)

There is no logical reason why the last one of these should not work.

The actual syntax is as follows:

   : move {
      numeric_dir -> ( 1 + 1 )
   }
ainslec commented 2 years ago

Fixed in betabeta

start_at   = room_1
redescribe = auto_beta
locations {
   room_1 : location "You are in a room 1.";
   room_2 : location "You are in a room 2 ";
   room_3 : location "You are in a room 3";
   room_4 : location "You are in a room 4.";
   room_5 : location "You are in a room 5.";
}

connections {
   from, direction, to = [
      room_1, east, room_2, 
      room_1, west, room_3,
      room_1, north, room_4, 
      room_1, south, room_5, 
   ]
}

on_command {
   : match "test1 _" / : move direction -> (1+2);
   : match "test2 _" / : move (1+2);  
}