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

[转载发布] Skill Costs

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

    连续签到: 2 天

    [LV.7]常住居民III

    9071

    主题

    864

    回帖

    6万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 2026-8-1 17:01:34 | 显示全部楼层 |阅读模式
    Skill Costs Script V1.1





    Created By Neon Black



    What is it?

    This script allows you to define additional skill costs using tags in skill's notebox.  There are numerous different conditions you can add aside from the standard MP and TP costs and all of them will need to be fulfilled in order for the skill to be available.

    How can I use it?

    To use it, just add any of the following tags to a skill's notebox.

    Spoiler

    • cost[5 mp] - This requires the user to have a certain amount of mp and will consume that much mp.  mp can be substituted with hp, tp, or gold.  Note that hp can not go below 1, so if the cost is 15 hp, the user must have at least 16 hp to use the skill.
    • cost[10% mp] - This requires the user to have a certain percentage of their mp remaining and will consume that amount.  mp can be replaced with hp, or tp.  This will be added to the base stat cost, for example, you can have a skill require 7 + 5% of mp by using both tags.
    • cost[all tp] - This does not require the user to have any tp, but will consume all remaining tp after the skill has been used.  This is not like using cost[100% tp] for that reason.  Also, tp would be removed after all damage has been dealt so you can use the current tp in the damage calculation.  tp can be replaced with mp or hp in this one.  Also, using cost[all hp] WILL kill the user.
    • cost[4 i3 item] - Requires the party to have 4 of item number 3 in the inventory.  The item is consumed on use.  You can also replace "i" with "w" or "a" to require a weapon or armour to be in the inventory.  More than one of this tag can be used at a time.
    • cost[state 3] - Requires the user be inflicted with state 3.  Upon use, the required state will be removed from the user.  More than one of this tag can be used at a time.
    • need[state 3] - Same as above except the state is not removed.
    • need[w 8] - Requires the user to be equipped with weapon 8.  "w" can be replaced with "a" to require an armour be equipped.  More than one of this tag can be used at a time.
    • need[actor 2] - Requires actor 2 to be present in the BATTLE party.  More than one of this tag can be used at a time.
    • need[switch 6] - Requires switch 6 to be turned on.  More than one of this tag can be used at a time.
    • need[variable 6 5+] - Requires variable 6 be greater than or equal to 5.  You can also use need[variable 6 5-] for less than or equal to, or use need[variable 6 5] to require variable 6 be equal to 5.  More than one of this tag can be used at a time.
    • need[type 4] - Requires a weapon of type 4 to be equipped.  This tag works exactly like the weapon type requirement drop downs on the bottom of a skill and was added in case you want a skill to work with 3 or more weapon types.  You can have more than one of this tag in a skill, but the weapon type must only match one.




    What does it work with?

    This script overwrites several of the methods used to check if a skill can be used and for that reason is not likely to work with other skill cost scripts.  If you would like me to add skill cost requirements or would like me to make it compatible with another script, just post here or PM me.

    How can I get it?

    Version 1.1 (base script, 7.19.2012) is available from my pastebin account here.

    I would like to use this code.



    This work is licensed under a Creative Commons Attribution-NonCommercial 3.0 Unported License.

    Permissions beyond the scope of this license may be available at http://cphouseset.wo...d-terms-of-use/.

    Author's disclaimer:

    Little late on script 4 for my week of scripts (yup, I'm still doing that).  I made this script first because I wanted to be able to use HP as a skill requirement.  Then I just kept adding possibilities as I came up with them.  Mainly I just wanted HP as a skill cost, more than just 2 weapon type requirements, and some way to set TP to 0 AFTER the skill was used so I could do a cool calculation like "damage = 5000 * a.tp".  Anyway, I may have gone a little overboard and had a bit of trouble explaining how stuff works in a concise manner, so if you have any questions, feel free to ask them.  Any requests, please ask them.  As always, enjoy!


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-18 00:25 , Processed in 0.088462 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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