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

[转载发布] Unleash Skills

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

    连续签到: 2 天

    [LV.7]常住居民III

    8279

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

    发表于 6 天前 | 显示全部楼层 |阅读模式
    Introduction

    If you've ever played a game like Golden Sun, you might be familiar with the concept of unleash skills. This script allows you to give weapons and skills a chance to activate a different skill in its place when used.

    Features

     - Allows you to specify one or more skills that can activate when using a weapon or skill.

     - The chance of activation can be affected by the user's luck.

     - You can create your own formula for calculating how luck (or other attributes!) affect activation chance.

    How to Use

    In the notes of a weapon or skill, you can specify one or more skills that have a chance of activating using the following notetag format:

    <unleash: id, chance>

    Where id is the id of the skill, and chance is the percent chance of it activating. For instance, <unleash: 10, 50> on a weapon would mean that there is a 50% chance of activating skill 10 in place of making a normal attack.

    If you specify more than one skill, then the unleash skills are checked in order until one succeeds (or if none do, then the normal attack / skill is used instead). When making a normal attack, unleash skills for each weapon are checked (in the order that they are equipped).

    Luck Factor

    If you want luck to play a role in determining how often an unleash skill activates, you can instead use the following notetag format:

    <unleash: id, chance, difficulty>

    Where difficulty is an integer used in the following relative difference formula below:

    activation_chance = base_chance * (1 + (luck - difficulty) / (luck + difficulty))

    Custom Luck Factor

    If you would like to use your own formula for calculating how luck affects unleash chance, you can use the Luck Eval parameter to evaluate it. The following variables might be useful to you when doing so:

     

    user: refers to the actor using the unleash skill. You can access attributes such as user.luk from this.

    diff: the difficulty of the unleash skill (0 if none is given in the notetag)

    chance: the base chance of activating the skill (represented as a fraction).

     

    Note that your final evaluated chance should probably be between 0 and 1 (where 0.0 = 0%, 0.5 = 50%, etc.).

     

    As an example, you could enter the following in Luck Eval:

    chance + user.luk * 0.01 - diff * 0.01

     

    This would increase the base chance by 1% per point of luck, minus 1% per point of difficulty that the unleash skill has.

     

    Compatibility

    As far as I can tell, this is compatible with Yanfly's plugins. Try to have this plugin at the top if you have problems.

     

    Update Log

     

    (1.1) Will now also look for unleash notetags in Actor and Class Notes

    (1.1) Added ability to have unleash skill only activated if they are learned by actor (see learned_unleash)

     

     

    Terms of Use

    You are free to use this script for any commercial or non-commercial game. Credit is not necessary, but it is appreciated!

    Disclaimer

    This is my first time writing in JavaScript, so bear with me!

     

    Download

    https://github.com/Vadavim/rpgmaker_mv_plugins/blob/master/VIM_Unleash.js


    本贴来自国际rpgmaker官方论坛作者:Vadavim处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/unleash-skills.49390/
    天天去同能,天天有童年!
    回复 送礼论坛版权

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 19:41 , Processed in 0.076140 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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