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

[转载发布] Quest Log - Script

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

    连续签到: 2 天

    [LV.7]常住居民III

    9068

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    Hello, everyone.

       I've finally finished my Quest Log v 1.2 script. I would like to share it with whomever is interested. It is simple to use, and looks nice, in my opinion.

    Here are some screen shots:













    I'm using a custom Window Skin that I made here, but it will work just fine without it.

    If you're interested in this script or the Window Skin you can go to the link below.

       http://drs-scripts-resources.webs.com/scripts

    Just copy the script and paste it into the Materials section of your script editor. You can also download with right+click.

    Notes:

       The background image will default to "qlog_bg_v1_2" in your project's picture folder. You can either change the title in the editable region of the script (QLOG_IMAGE), turn the background image off in the editable region(QLOG_IMAGE_BOOL), or add a picture with the title "qlog_bg_v1_2". 

       The same goes for the background overlay image. It defaults to "qlog_ol", but for you can change this the same way by either change the title in the editable region of the script (QLOG_OL_IMAGE), turning the overlay image off (QLOG_OL_BOOL), or adding a picture with the title "qlog_ol".

       The instructions within the script explain how to manage quests, but I figured I'd explain it here in case someone who doesn't script would like to use it.

        - All you need to do to to add an active quest is make a script call in an event.

           $game_system::add_active_quest("Quest Title", "Quest Description", "Rewards List")                                          

             Ex. $game_system::add_active_quest("Slay The Dragon", "A dragon has been terrorizing the civilians of a nearby town. Slay it with your mighty sword and save the townsfolk.", "Experience: +354, Gold: +296, Item: +Dragon Fang")

         The objective and description is fairly straight forward, but the rewards list only looks for commas. It will cycle through the list displaying the current element before each comma. Each element is displayed for 60 frames. So, "Experience: +354" would be displayed for 60 frames, followed by "Gold: +296", and then "Item: +Dragon Fang" for 60 frames. I hope this makes sense to everyone. Also, it's important to note that the quest log doesn't make any actual changes to the actors. All of this must be done through eventing.

     

        - Adding an inactive quest works exactly the same as above

           $game_system::add_inactive_quest("Quest Title", "Quest Description", "Rewards List")                                           

             Ex. $game_system::add_inactive_quest("Slay The Dragon", "A dragon has been terrorizing the civilians of a nearby town. Slay it with your mighty sword and save the townsfolk.", "Experience: +354, Gold: +296, Item: +Dragon Fang")

       - To edit a quest just make a script call in an event. It will work no matter which list the quest is in.

         $game_system::edit_quest("Current Title", "New Title", "New Description", "New Rewards List")

       - Removing a quest sends it to the completed quests list.

         $game_system::remove_quest("Quest Title", failure=false)

        It is not necessary to enter a value for failure as it defaults to false, but if you insert true for failure it will give the quest a FAILURE message rather than a SUCCESS.

       Thanks for checking it out. If you like it let me know, and if you don't let me know. If there are any suggestions or changes you'd like to see I'd be more than happy to try them out. Within reason of course. Enjoy!


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-8 12:22 , Processed in 0.065032 second(s), 55 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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