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

[转载发布] Perks

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

    连续签到: 2 天

    [LV.7]常住居民III

    8307

    主题

    864

    回帖

    3万

    积分

    管理员

    Rank: 9Rank: 9Rank: 9

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

    灌水之王

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


    Version: 1.0


    Author: Mr. Trivel


    Created: 2015-11-28


             


    What does it do?


            It's a perk system. Actors get perk points on specific levels when leveling up or on every level up.


            Perk points can be spent in Perks Scene which can be accessed from menu.


             


    Screenshots:


           


             

    SpoilerSpoiler



                           


                             




             


    How to use?


            Plugin Commands:


            AddPerkPoints [POINTS] [ACTOR_ID] - Adds perk points to actor via plugin call. E.g. AddPerkPoints 999 5


            ChangePerksCommand [TRUE/FALSE] - Changes whether Perks command locked or unlocked in menu.


             


            How to create perks:


            Place following data to Actor note field:



                    Code:       
    1. <perk>
    2. <name: [PERKNAME]>
    3. <requirements>
    4. level: [LEVEL]
    5. atk: [ATK]
    6. def: [DEF]
    7. matk: [MATK]
    8. mdef: [MDEF]
    9. agi: [AGI]
    10. luk: [LUK]
    11. perk: [NAME]
    12. switch: [ID] [ON/OFF]
    13. variable: [ID] [> >= < <= == !=] [VALUE]
    14. </requirements>
    15. <rewards>
    16. state: [ID]
    17. </rewards>
    18. <description>
    19. [TEXT]
    20. </description>
    21. </perk>
    复制代码





            It just looks like a lot. Unnecessary requirements can be omitted.


            <perk> - Start of the perk data.


            </perk> - End of the perk data.


            <name: [PERKNAME]> - Name of the perk. E.g. <name: Destroyer of Glasses>


            <requirements> - Start of requirements for perk data.


            atk/def/matk/mdef/agi/luk - stats required


            level - level required


            switch - is switch with ID ON or OFF


            variable - how is variable of ID compared to VALUE (> - more than, >= more than or equal to, < less than, <= - less than or equal to, == - equal to, != - not equal to)


            </requirements> - End of requirements for perk data.


            <rewards> - Start of rewards data


            state: [ID] - when perk is unlocked player gains permanent traits from the state of ID


            </rewards> - Ends of rewards data


            <description> - Description begins here


            TEXT - can be multiline, can be in single line. Does text wrapping automatically.


            </description> - Description ends


             


            Examples of perks:


    Spoiler                Code:       
    1. <perk>
    2. <name: Glasses Apprentice>
    3. <requirements>
    4. matk: 2
    5. </requirements>
    6. <rewards>
    7. state: 11
    8. commonEvent: 4
    9. </rewards>
    10. <description>
    11. Glasses.
    12. </description>
    13. </perk>
    14. <perk>
    15. <name: Glasses Master>
    16. <requirements>
    17. level: 10
    18. atk: 5
    19. def: 5
    20. matk: 5
    21. mdef: 5
    22. agi: 5
    23. luk: 5
    24. perk: Glasses Apprentice
    25. switch: 77 ON
    26. variable: 77 < 76
    27. </requirements>
    28. <rewards>
    29. state: 11
    30. commonEvent: 4
    31. </rewards>
    32. <description>
    33. Glasses Mastery.
    34. Enough said.
    35. </description>
    36. </perk>
    37. <perk>
    38. <name: Mana Circulation>
    39. <requirements>
    40. matk: 2
    41. </requirements>
    42. <rewards>
    43. state: 11
    44. </rewards>
    45. <description>
    46. You have amazing ability to circulate mana around you. Gaining increase mana regeneration and mana compatibility. The spirits you summon deal more damage.
    47. </description>
    48. </perk>
    49. <perk>
    50. <name: Fire Spiritism>
    51. <requirements>
    52. matk: 5
    53. luk: 2
    54. </requirements>
    55. <rewards>
    56. state: 11
    57. </rewards>
    58. <description>
    59. Fire spirits you summon like you more. You like them more, too.
    60. Such a nice person.
    61. </description>
    62. </perk>
    63. <perk>
    64. <name: Mana Builder>
    65. <requirements>
    66. atk: 5
    67. matk: 7
    68. </requirements>
    69. <rewards>
    70. state: 11
    71. </rewards>
    72. <description>
    73. Some people build things out of wordly materials. You.. you build things out of non wordly materials.
    74. </description>
    75. </perk>
    76. <perk>
    77. <name: Mana Master>
    78. <requirements>
    79. level: 25
    80. matk: 15
    81. perk: Mana Builder
    82. </requirements>
    83. <rewards>
    84. state: 11
    85. </rewards>
    86. <description>
    87. You are a master of mana. Mana is you. You is mana.
    88. </description>
    89. </perk>
    复制代码







             


    Plugin: <Link: Github>


            How to download Script. Click the link above, there will be a button named Raw, press Right Click -> Save As.


             


    Terms of Use:


            Don't remove the header or claim that you wrote this plugin.


            Credit Mr. Trivel if using this plugin in your project.


            Free for non-commercial projects.


            For commercial use contact Mr. Trivel.


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

    本帖子中包含更多资源

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

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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-1 20:48 , Processed in 0.125981 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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