inkle / inkle/ink

Does anyone know how to have a random knot come up in Ink?

Open
#761 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
4.9k
Forks
540
PR merge metrics
No merged PRs in 30d

Description

Sorry if this is the wrong place to ask.

I'm wanting to program a simple Oregon Trail type of game in Ink. But I can't find a simple way to have a central hub from which to select random events (knots).

The central gameplay loop is a knot that displays variables as you go (the camp/wagon, I guess). Then the player would select from random things to do and would have to make choices in those knots. Then they come back.

The issue I'm having is that I can't find a simple way to have random knots presented to the player.

I came across this code on a GetHub thread, but I can't make it work:

{
- RANDOM (1, 3): -> a
- RANDOM(1,2): -> b
- else: -> c
}

I'm not a programmer, so I can't do much :P.

Any help would be greatly appreciated. Particularly if there is a way to make images come up randomly too. That would be amazing. I know Ink was not designed with images in mind, but that would be swell.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.