Turn feeds into objects
agustincordes opened this issue · 0 comments
Currently feedbacks are represented by a line of text and optionally an audio file. The plan is to add some more complexity and make these objects reusable. We're finding many situations in Asylum when it makes sense to describe a custom behavior that applies to many different objects. For example, the feedback regarding all the windows in the game can change as the story progresses.
The new object can be as simple as this:
myFeedback = Feed("I can't use these things together").
mySpot:attach(myFeedback)
Or several lines can be added:
myFeedback:add("Seriously, I can't use these things together.")
myFeedback:add("I mean it, now stop doing that.")
Whenever the object is referenced, the current feedback could be cycled sequentially or randomized:
myFeedback:setSequential()
myFeedback:setRandomized()
Also planned is the ability to deliver a feedback conditionally, that is, if a flag is true:
usedAnotherThing = false
myFeedback:add("I may be able to use these things together now.", usedAnotherThing)
More possibilities will be considered for this handy object.