An interesting trick

definitively a very productive day…

this time, I present to our community a nifty trick.

As I have discussed in past, I need that the player is restricted in its actions in certain locations, and I have found a simple solution, exploiting a3Lite’s Decoration, creating a custom decoration:

class spDeco: Thing
  isDecoration = true
  decorationActions = [Examine, Touch, Feel]
  notImportantMsg = 'being incorporeal, you can only examine, touch or feel'
;

with this special decoration, I can restrict the action to the three or four action allowed in the specific location, and on top of it, the items are easier to implement, needing only the desc, touchDesc and feelDesc (a3Lite 2.2, of course)

Best regards from Italy,
dott. Piergiorgio.

3 Likes

Very nice. This would have been a perfect technique for my game Fireboat.