inkle / ink

inkle's open source scripting language for writing interactive narrative.
http://www.inklestudios.com/ink
MIT License
4.07k stars 488 forks source link

Using diverts in lists? #250

Open ladyisidore opened 7 years ago

ladyisidore commented 7 years ago

Is it possible to use diverts as list values? As in:

LIST rooms = -> building.room_a, -> building.room_b

I'm trying to build a world-model in ink that's like, but not 100% identical to, a parser world-model. I figured out how to keep track of inventory and other things, but the actual buildings-rooms-outside bit is escaping me, but I think if I could use diverts as list values, I could figure it out.

joningold commented 7 years ago

You can't, but you could store list values and then convert them via a function that takes a value and return a divert?

Jon On Tue, 10 Jan 2017 at 6:55 pm, Isak Grozny notifications@github.com wrote:

Is it possible to use diverts as list values? As in:

LIST rooms = -> building.room_a, -> building.room_b I'm trying to build a world-model in ink that's like, but not 100% identical to, a parser world-model. I figured out how to keep track of inventory and other things, but the actual buildings-rooms-outside bit is escaping me, but I think if I could use diverts as list values, I could figure it out.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/inkle/ink/issues/250, or mute the thread https://github.com/notifications/unsubscribe-auth/AA40o74250uIO48eXENd34KykOmag2bSks5rQ9QzgaJpZM4LfxIZ .

ladyisidore commented 7 years ago

Oh, that'll work! Thank you

joningold commented 7 years ago

Np! (This is basically how we did tunnels in Sorcery before we had proper tunnels in the language. )

Jon On Tue, 10 Jan 2017 at 7:37 pm, Isak Grozny notifications@github.com wrote:

Oh, that'll work! Thank you

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/inkle/ink/issues/250#issuecomment-271675333, or mute the thread https://github.com/notifications/unsubscribe-auth/AA40o2xxFOhhXN04xh7gna7-jr4p2ONAks5rQ93mgaJpZM4LfxIZ .

sjmp commented 4 years ago

Ah Jon I could kiss you