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

[制作教程] Thex Custom Shops

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

    连续签到: 2 天

    [LV.7]常住居民III

    4548

    主题

    864

    回帖

    2万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 3 天前 | 显示全部楼层 |阅读模式
    DEMO: http://dl.dropbox.com/u/5536575/Custom%20Shop%20Tutorial.exe

    This tutorial aims to teach you how to make a nice custom shop layout for your game. Instead of going through that drab typical RPG shop menu, you can check out each item and get a custom description.

    Basically, with this kind of layout:

















    Each of those events is something you can buy. The shopkeeper is just there for conversation.

    When you use the action button on an event, you get to see the stats and description of the item, then you get to decide how many to purchase, and then you get the final price and a choice of if you want to finalize the purchase. It's quite simple really.

    You can use this shop layout to allow the purchasing of equipment, consumables, and even spells!

    Lets start with the variables you'll need:

    1. Variables

    You'll need 8 Variables for this:

    Items on Hand
    Price
    Quantity
    Total
    Name
    Icon #
    99 Checker

    + Any Temporary Variable
    (All games should have two of these)

    4 of the variables help us easily copy and paste each event so that we just have to make very minor edits to change it.

    Price
    Items on Hand
    Name
    Icon #

    The other 4 do fancy system work to ensure everything is done smoothly.

    2. How to Copy-Paste





    The Common Event:




    This is an example of Leather Cap armor we can buy and the common event.

    In the Leather Cap example the first 4 variables are what we need to change for each copy-paste we do.


    • Make sure the price is the right price for the item
    • Make sure Items on Hand points to the correct item in the database we're buying
    • You name it what you want to name it
    • You give it the right Icon index number from the icon list.
    Then there's three other parts to change.


    • The item description, which is the last 3 lines in the first "Text:" display. These are the description and stats for the item. I've made mine fancy and will provide my templates for items and weapons for you!
    • You'll see towards the bottom "Change Armor: [Leather Mail] + Variable [n: Quantity]" Make sure you set this to the right item we're buying.
    • Make sure you set the right graphic for the event that you want.
    3. The Setup

    Alright, now that you can see the pictures and how the events are done, it's time to calibrate them for your game. After you do this you won't have to touch it again, minus the parts for copy-paste in section 2.

    First create your brand new events with everything I've shown in the picture, including the check boxes. (Or collect them off the demo)

    When you make this, you might be using different variable #'s then I am for my suggested variables. It's important that you correctly plug in the right numbers for each variable in the right places.

    This includes in the messages. You'll see a lot of messages have \v[##] like \v[98]. These point to the variables we made for this system. It's important you make sure they point to the right number! I'll list them off for you:

    \v[100] Items on Hand
    \v[99] Price
    \v[98] Quantity
    \v[97] Total
    \v[96] Name
    \v[95] Icon #
    \v[94] 99 Checker

    So just remember what number here is the new variable number in your game, and change them accordingly in the message boxes and down the event list.

    \v[100] ==> \v[3] if variable 3 is your Items on Hand.

    Don't forget your Temp Variable too!

    4. How it Works

    It starts by getting brand new values for our text to show. These are the 4 variables that are part of setup.

    It then shows a money window, the price, and the name of our item we're selling with an icon next to it. It follows up with your own custom description of the item and the stats it provides or effect it does.

    It jumps into the Common Event after this:

    Then it asks us how many we want to buy, letting us input a number.

    It tells us the total price and amount we're buying after we've done this, and if we want to make the purchase.

    If we're going over the 99 item limit, it tells us and doesn't let us buy.

    If we don't have the funds to buy the item, we can't buy, and it tells us.

    It then leaves the Common Event:

    If we can afford it and fit it in our inventory it takes our gold and gives us the item(s) purchased.

    5. Templates for Item Descriptions:

    These are example templates I've used for various items. They work with the default Window colors.

    Let me start with the base message you'll use so you can just copy-paste this into your text box when making the system for the first time:

    \$\c[4]\i[\v[95]]\v[96]:\c[0] \v[99]\g \> \v[100]/99
    "Someone melted their bed frame to make this."
    \c[8]Heavy Armor\c[0]
    \c[24]DEF:\c[0] 4 \c[24]AGI:\c[0] 1 \c[24]LUK:\c[0] 1 \c[24]ASPD:\c[0] 1

    \$\v[98] \c[4]\i[\v[95]]\v[96](s)\c[0] will cost \v[97]\g.

    Remember, you never have to edit the first line of the text box that shows item descriptions when copy-pasting.

    This is what I've used for a robe:

    "Close it tightly to avoid wardrobe malfunction."
    \c[8]Light Armor\c[0]
    \c[24]DEF:\c[0] 4 \c[24]MDEF:\c[0] 2 \c[24]MAT:\c[0] 2

    I've used this for a Spear:

    "Putting knives on a stick seemed smart to someone."
    \c[8]Spear\c[0]
    \c[24]ATK:\c[0] 12 \c[10]EVADE\c[0]:-2% \c[10]HIT %\c[0]:-5% \c[10]AGI\c[0]-2

    I've used this for a Red Health Potion:

    "It looks like blood, but I swear it's not!"
    Restores 175 \c[10]HP\c[0] to a party member when used.
    \c[11]Medicine.

    Here is the iconset I'm using:

    [/url]

    And here is the charsets I've converted the icons into:

    [url=https://forums.rpgmakerweb.com/attachments/armors-png.2496/]

    [/url]
    [url=https://forums.rpgmakerweb.com/attachments/potions-png.2498/]

    [/url]
    [url=https://forums.rpgmakerweb.com/attachments/spells2-png.2500/]

    [/url]

    Art is credited to:
    [url=http://ails.deviantart.com/]http://ails.deviantart.com/


    NOTE:
    If someone could make or provide a charset layout for the icons in RMVX Ace RTP that'd be a huge help to anyone using this tutorial!


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-7-15 18:10 , Processed in 0.141417 second(s), 52 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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