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

[制作教程] Thex Furniture Selector and Changer

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

    连续签到: 2 天

    [LV.7]常住居民III

    4470

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 前天 12:57 | 显示全部楼层 |阅读模式
    Part of:          Thex Tutorial & Demo Systems


    DEMO: Thex Furniture Selectorhttp://dl.dropbox.com/u/5536575/Furniture Selector.exe

    What is this?

    Excerpt of the Intro Event's comments.

    Spoiler"Welcome! As you can see by testing this is a very powerful and
    interesting system.

    Let me make this clear, this is an intermediat to advanced level
    evented system.



    It's important to note this, because beginners may not be able to
    understand anything that's going on in the events and may not be
    able to edit this system to work for them.



    It's lightweight for what it does, using only a few switches and
    variables. However to expand the system, we must create more.  
    Before we can do that we must understand what each one does.



    Control A, B, C, D, etc. are the switches that turn on for each piece
    of furniture in the room.
    They can be recycled, meaning that when we enter a new map we
    can reuse the same control switches.
    Make sure there's enough Control switches for each furniture spot.



    Then we need 1 variable for every piece of furniture. This cannot
    be recycled and must be unique for each piece of furniture in the
    game.
    This variable keeps track of what piece of furniture is currently in
    place.



    And these are the only switch and variable groups we need.


    In order to set up a room to have furniture selection, we must add
    the Q checker.
    This simply checks for the Q button press that toggles furniture
    mode on or off.



    Next we must set the desired furniture. Make sure you've also set
    up the items in your database. Furniture typically has a blank page,
    an F page, and then a page for each piece of furniture.



    The furniture pages have a conditional branch that checks if
    Furniture Mode is on. This allows us to do different things depending
    on if we're in or out of furniture mode. When we're in furniture
    mode, yeah, we want to change the furniture.
    But maybe we want to do something else when not in furnish mode.



    After we have our furniture, we need to decide how the furniture is
    changed. This is the complex part.  There's an event called Control
    Pages that is turned on by our Control switches. Each piece of
    furniture on the map gets it's own Control switch and autorun page
    in the Control Pages event.



    Each control contains a loop. The loop checks for button presses.  
    The 3 button presses are Left, Right and Enter.

    Left checks from the highest furniture number to the lowest.
    Right checks lowest to highest.


    We check the inventory when going left or right to see if the correct
    item is in the inventory. We also add or subtract items from our
    inventory to keep it up to date for what item we're on.



    It's a tricky process. Going to the right for example. We want to
    check our next item up in the list. If we don't have it, we want to
    move on to the next til we either do have an item or end up with no
    item in the spot."




    Ever wanted to place furniture in your house? So did I.  I set out to make a system that did it. Unfortunately that system was convoluted, used scripts, and lagged.

    Fortunately I tried again much later and came up with this. It's light-weight, doesn't lag and only consumes the variables and switches it needs. We're talking as low as only 2 switches and 1 variable if you want. (You'll want more tho!)

    How it works is rather simple. Hit Q in your house and furniture mode will activate. This displays F's where you can put furniture in your house. Go up to the F, hit enter, and hit left or right to change funiture. Hit enter again to confirm your selection or Esc to clear the spot. Hit and Q to close down furniture mode.  Best of all you can still interact with your furniture normally when furniture mode isn't on.

    It's not an easy system to use. Just because it's lightweight doesn't mean it's not complex.  You'll need to know loops, labels, variables, switches, conditional branches, and some base level system designing.

    The only thing I would have liked to add is an indicator to press left/right when changing furniture. But that can be left up to you! 

    Try to find the secret item in the game...










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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-14 17:56 , Processed in 0.116764 second(s), 56 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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