Javascript-форум (https://javascript.ru/forum/)
-   (X)HTML/CSS (https://javascript.ru/forum/xhtml-html-css/)
-   -   Javascript для SugarCube 2.21.0 (https://javascript.ru/forum/xhtml-html-css/76637-javascript-dlya-sugarcube-2-21-0-a.html)

Buggy 28.01.2019 17:23

Javascript для SugarCube 2.21.0
 
Здравствуйте у меня есть готовый джаваскрипт для этой платформы
https://twine1.neocities.org/ReplaceMacros.min.js
к этому скрипту предлагается примеры
You see <<replace "a half-eaten cake">>a plate of crumbs<<endreplace>>
You see <<replace "ten dollars">>five dollars<<becomes>>two dollars<<becomes>>fifty cents<<endreplace>>
You see <<replace>>a //big// boulder!<<becomes>>some pebbles.<<endreplace>>
I find it <<insert "repugnant">> that he's made such comments<<endinsert>>.
You go outside. <<continue "Next.">>The sun blinds you momentarily.<<continue "Next.">>Has it been so long?
<<revision side>>Off to the side is a <<revise side "stable">> for the wagon-pulling animals.<<becomes>>Some other text.<<endrevision>>
но при попытке запустить, примеры выдают вот это, работает только <<insert>>

вот ссылка где я брал это, там же есть рабочая модель
https://www.glorioustrainwrecks.com/node/5019
с этим можно что то сделать?


Часовой пояс GMT +3, время: 03:29.