じ☆ve冰风 发表于 2026-7-31 15:02:21

DoubleX RMVXA Random Cast


        DoubleX RMVXA Random Cast  v1.00a



        by DoubleX





Introduction


        Lets users cast random skills on targetswhen the current skill hits them


        Intended to mimic "FF's weapons' randomly casts skills" thing

Spoiler 




#* Notetag <random cast: id, cp, cr, cs, cc> for states(1), weapons(2),      |
#    armors(3), enemies(4), actors(4), classes(5) and skills(6)
the larger the|
#    number, the higher the priority)                                          |
#    To make a battler has cp% chance to cast skill with id id and cr% cost    |
#    to a target when the current skill of that battler hits that target, put|
#    the above notetag into the related actor's, class's, skill's, equip's,    |
#    enemy's or state's notebox in the database.                               |
#    Setting cs as 0 and 1 makes cr negative and positive respectively         |
#    cc is the random cast condition explained in the below user editable zone |
#    Skills invoked via random cast only hit that target an only hit once      |
#    That target can't counter nor reflect those skills.                     |
#    If more than 1 such notetag is placed in the same actor's, class's,       |
#    skill's, equip's, nemy's or state's notebox, the 1st notetag meeting its|
#    requirements will be used and all the others will be ignored. All those   |
#    noteboxes will be scanned from the 1st line to the last line.             |






Video










Features


        Use of notetags(requires knowledge of notetag usage) to allow skill users to have a chance to randomly cast skills on targets when the current skill hits them if some conditions are met


        Decent boolean logic and scripting knowledge is needed to use this script to its full potential


How to use


        Open the script editor and put this script into an open slot between Materials and Main. Save to take effect.


FAQ


        Q1: How to setup my own CCX without any scripting knowledge?


        A1: You can ask me here for ways to setup your specific CCX but I'm afraid I'm still not proficient enough to be a scripting teacher



Credit and Thanks


DoubleX(Giving me credit is completely optional)


        No terms of use other than not claiming this script as created by anyone except DoubleX or his alias


Compatibility


        Scripts aliasing or rewriting method:


        - load_database under module DataManager
        - apply_item_effects under class Scene_Battle


        may have compatibility issues with this script


        Place this script above those aliasing any of these methods if possible


Changelog


        v1.00a (GMT 0800 26-8-2014):
         - 1st version of this script finished


(DoubleX)Random Cast v1.00a.txt


本贴来自国际rpgmaker官方论坛作者:DoubleX处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址:https://forums.rpgmakerweb.com/threads/doublex-rmvxa-random-cast.31460/
页: [1]
查看完整版本: DoubleX RMVXA Random Cast