设为首页收藏本站同能贴吧 切换语言 繁体中文
开启辅助访问 切换到窄版
扫描二维码关注官方公众号
返回列表
+ 发新帖
查看: 87|回复: 0

[转载发布] EISLibrarium 1.02 [Updated]

[复制链接]
累计送礼:
0 个
累计收礼:
1 个
  • TA的每日心情
    开心
    2026-7-12 04:10
  • 签到天数: 209 天

    连续签到: 2 天

    [LV.7]常住居民III

    8099

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

    VIP
    7
    卡币
    30205
    OK点
    16
    推广点
    0
    同能卷
    50
    积分
    39198

    灌水之王

    发表于 5 天前 | 显示全部楼层 |阅读模式
    Intro:


            This is a plugin that allows you to create books that the player can read in game via events, or common events.


            It brings up a book scene, which lets you go through a book page by page.


    Changelog:


    • KRBook.js replaced by EISLibrarium.js
    • Add multiple language support
    • Fix issues with searching
    • Add support for languages without spaces (Japanese, etc).



            The new plugin has the same features, plus more, to support devs in creating an interesting game.


    Version: 1.02


    Script Files:


    View attachment KRBook.js (Old Version)


    View attachment EISLibrarium.js (New Version)


    JSON File Template (Download this if you want a file to start from.)


    Librarium.json (Right Click "raw" then save link as to download.)


    Website


            For the most recent version, check out the website post here : http://endlessillusoft.com/eis-librarium/

    Companion Tool: http://endlessillusoft.com/eis-librarium-writer/


    Features:


    • Displaying books in game
    • Unlimited amount of books
    • Unlimited amount of pages
    • JSON file type
    • Can call via events or common events
    • Works with Yanfly's Message Core

    New Features


    • Automatic word wrapping (brings the new word to the second line, instead of cutting off part of the word)
    • Supports text codes
    • Background image for the book scene
    • Show book text in the message window
    • Grab book text content to store in a variable



    Instructions:


    • Install the script with the same name: KRBook.js or EISLibrarium.js.
    • If you want to show one of your books, call it by title using the KR.Helpers.startBookScene(title) script function.


      •                     Your title should be in quotes, and it is not case sensitive.

    • Create a .json file with the file name that you want to use.


      •                     Create the necessary .json structure shown in the feature example window, or copy and paste the code snippet as a starting point.

                                    Need to maintain the structure of the file, or else it won't work correctly.

    • Yanfly's Message Core Specific (Not Required For Librarium):


      •                     Type <wordwrap> at the beginning of your 'pageText' to enable word wrapping.
      • Type <br> or <linebreak> to insert a linebreak in the 'pageText'.

    • Have fun!



    Script Calls (Librarium)


    /*
    //=============================================================================
    // Script Calls
    //=============================================================================
    *
    * SceneManager.startBookScene(title)
    * This script call will open the book scene, so that players can view a book
    * of your choice. You need to pass the title of your book in quotes.
    * Example:
    * SceneManager.startBookScene("lilia");
    * Titles are not case sensitive.
    *
    * Librarium.getBookContents(title);
    * This script call will return the book contents, which you can store in a
    * variable for example.
    * Example:
    * Librarium.getBookContents("lilia");
    *
    * Librarium.showInMessageWindow(title)
    * Shows the book contents in the message window used for showText commands.
    * The text doesn't have word wrapping like the scene, so you'll need a plugin
    * that supports word wrapping. (Yanfly)
    * Example:
    * Librarium.showInMessageWindow("lilia");
    */



                    Code:       
    1. //Single Book Item -- Can copy and paste this to the end of the list in the book file after adding a , to the last entry
    2. {
    3.     "title": "Empty Book",
    4.     "pages": [
    5.       {
    6.         "pageNumber": 1,
    7.         "pageText": "This is the first page."
    8.       },
    9.       {
    10.         "pageNumber": 2,
    11.         "pageText": "This is page 2 of the book"
    12.       }
    13.     ]
    14.   }
    15. //Book File Setup -- Save this to JSON file in your data folder with the specified file name you declare in the plugin.
    16. [
    17.   {
    18.     "title": "A Testing Guide",
    19.     "pages": [
    20.       {
    21.         "pageNumber": 1,
    22.         "pageText": "This is the first page."
    23.       },
    24.       {
    25.         "pageNumber": 2,
    26.         "pageText": "This is page 2 of the book"
    27.       }
    28.     ]
    29.   },
    30.   {
    31.     "title": "Lilia",
    32.     "pages": [
    33.       {
    34.         "pageNumber": 1,
    35.         "pageText": "Lilia was a made from the town of Chrystal."
    36.       },
    37.       {
    38.         "pageNumber": 2,
    39.         "pageText": "This is page 2 of the book. This is a very long string of text however, so hello there!"
    40.       },
    41.       {
    42.         "pageNumber": 3,
    43.         "pageText": "Chrystal is a village of extreme wonder, \\I[33] and it was treated as such by many. One had to be careful how they treated the villages there; it was certaintly not easy to get along."
    44.       }
    45.     ]
    46.   }
    47. ]
    复制代码



    Setup Example Windows:

    Spoiler









































































    In-game Examples:


    SpoilerLibrarium Scene














































































    Credits:


    Free for both commercial and non-commercial use.Credit with the name Kino.


            Thanks:Thank you to anyone who decides to use this script; I appreciate it!


    If there are any bugs/issue, please contact me via message on the forums. I want to try and make the script as extensible/flexible as possible, so if you have an ideas also


    please message me.


    本贴来自国际rpgmaker官方论坛作者:Kino处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/eislibrarium-1-02-updated.58851/

    本帖子中包含更多资源

    您需要 登录 才可以下载或查看,没有账号?立即注册

    x
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

    文明发言,和谐互动
    文明发言,和谐互动
    高级模式
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    简体中文
    繁體中文
    English(英语)
    日本語(日语)
    Deutsch(德语)
    Русский язык(俄语)
    بالعربية(阿拉伯语)
    Türkçe(土耳其语)
    Português(葡萄牙语)
    ภาษาไทย(泰国语)
    한어(朝鲜语/韩语)
    Français(法语)
    关闭

    幸运抽奖

    社区每日抽奖来袭,快来试试你是欧皇还是非酋~

    立即查看

    聊天机器人
    Loading...

    QQ|Archiver|手机版|小黑屋|同能RPG制作大师 ( 沪ICP备12027754号-3 )

    GMT+8, 2026-8-1 12:51 , Processed in 0.067453 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

    快速回复 返回顶部 返回列表