This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Ink expression parsing code created by IFcoltransG | |
| // Released into public domain | |
| // May be used under the MIT No Attribution License | |
| CONST string_to_parse = "5 * 10" | |
| Parsing "{string_to_parse}" | |
| ~ temp c = "" // initial cursor | |
| ~ temp result = parse_expression(string_to_parse, c) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Ink string util code created by IFcoltransG | |
| // Released into public domain | |
| // May be used under the MIT No Attribution License | |
| // All functions only work on supported symbols that have been added | |
| // to the `letters` variable below. | |
| /* | |
| This is a sentinel token. It should be set to something that won't appear in any words. | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | /* "Storylet" implementation. | |
| Based on https://github.com/smwhr/ink-storylets/tree/main by smwhr. | |
| This allows you to create content as "storylets" - little chunks / scenes, which are gated by preconditions. The game offers a choice of which one the player can look at, by picking the top N that are available now. | |
| The machinery is fairly light, and the data is kept "with" the story content, so its easy to use as an extendable template. | |
| */ | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | LIST Fruit = Apple, Banana, Orange, Lemon | |
| VAR fruitSaladIndex = 0 | |
| - (top) | |
| * [add apple ] | |
| ~ addToSalad(Apple) | |
| * [ add banana ] | |
| ~ addToSalad(Banana) | |
| * [ add orange ] | |
| ~ addToSalad(Orange) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Ink capitalisation code (v2) created by IFcoltransG | |
| // Released into public domain | |
| // May be used under the MIT No Attribution License | |
| /* | |
| This is a sentinel token. It should be set to something that won't appear in any words. | |
| */ | |
| CONST START = "^^" | |
| /* | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | <!-- | |
| Change polling sidebar based from | |
| //https://gist.github.com/tanaikech/f27d427f07b20ca9fedec21e643c4a3e | |
| Inkjs runtime+ compiler from https://github.com/y-lohse/inkjs/releases/tag/v2.2.2 | |
| Ink js webplayer from https://yannick-lohse.fr/inkjs/ | |
| --> | |
| <body> | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Ink clicker code created by IFcoltransG | |
| // Released into public domain | |
| // May be used under the MIT No Attribution License | |
| LIST journey_soundtrack_songs = Nascence, Apotheosis, Reclamation | |
| VAR a = Nascence | |
| VAR b = Apotheosis | |
| -> go | |
| == go | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | // Ink capitalisation code created by IFcoltransG | |
| // Released into public domain | |
| // May be used under the MIT No Attribution License | |
| CONST START = "^^" | |
| LIST letters = (a), (b), (c), (d), (e), (f), (g), (h), (i), (j), (k), (l), (m), (n), (o), (p), (q), (r), (s), (t), (u), (v), (w), (x), (y), (z), /* | |
| */ A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z | |
| Here is an example of the word "hello" capitalised: {capitalise_start("hello")} | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | EXTERNAL tunnelDepth() | |
| === function tunnelDepth() | |
| // Tunnel Depth not supported in inky! | |
| ~ return 1 | |
| === tunnelOut(-> thenGoTo) | |
| { tunnelDepth() > 1: | |
| // Tunnelling out! | |
| ->-> tunnelOut(thenGoTo) | |
| } | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | ~ relate(Key, MadeOf, Copper) | |
| ~ relate((Padlock, Spear), MadeOf, Iron) | |
| ~ relate(GoldCoin, MadeOf, Gold) | |
| VAR Inventory = () | |
| - (top) | 
NewerOlder