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

[转载发布] RK5 Debug Console

[复制链接]
累计送礼:
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 14:54:51 | 显示全部楼层 |阅读模式
    RK5 Debug Console


    "I was tired of testing stuff in the Editor - Now I can do that on move"


    Version: 1.2.1





    def draw_introduction
    This script adds an in-game console, that can be brought in any scene to perform a script call, that can be typed during gameplay.
    There are many, many, many possibilities of using that console, starting from simply changing variables to even performing advanced codes to 
    affect objects or even create them.
            Besides freely typed strings, the console contains build-in commands, for quicker debugging like teleporting player to specific maps and coordinates or hooking objects like windows to move or resize them and print their parameters into a txt file to allow developers configure them in the script properly.

    end
             



    def features

    -=> Use build-in commands! Think of cheats or commands in Minecraft lel
                   (spawn items/gold, noclip and stuff like this)
    -=> Hook objects like windows to adjust their position, size or opacity
           and print the results into a txt file!
    -=> Change variables, actor/enemy stats and many, many more
    -=> Check values maintained by variables etc.
    -=> Everything is up to you!
             
    Planned Features:
    -=> More commands - because why not?
             
    end
             



    def draw_instructions
    ► SCRIPT DIFFICULTY: ★★☆☆☆ ★★★★☆
                                        from build-in commands - to advanced usage
             
    ► REQUIRED SCRIPTS!
              [■] CP Keyboard Input script by Neon Black
                └►[profile] http://forums.rpgmakerweb.com/index.php?/profile/626-neon-black/
                └►[script] http://pastebin.com/raw/rD4rQtKP
             
    ► USAGE:
    -=> Place script(s) below ▼ Materials; above ▼ Main Process
    -=> Plug & Play
    -=> Press '~' (tilde) to bring up the console or exit from it.
    -=> Type /help in console to view available commands and such.
    end
             



    def draw_currenty_available_commands

    Spoiler#==============================================================================#
    # CURRENTLY AVAILABLE COMMANDS                                                 #
    # ----------------------------                                                 #
    # [■] Commands - Call pre-made codes.                                          #
    #   └► Toogle Noclip Mode | /noclip                                            #
    #   |    Desc: Allows to go through impassable objects.                        #
    #   |    Usage: /noclip #=> Toogles Noclip Mode ON/OFF                         #
    #   |                                                                          #
    #   └► Give Item | /give [type] [id] [amount] OR /give <item name> [amount]    #
    #   |    Desc:  Spawns an item in inventory. Types: 1=item 2=weapon 3=armor    #
    #   |    Usage: /give 1 5 10 #=> Gives 10x item with ID 5 from item category   #
    #   |           /give Small Potion 10 #=> Gives items based on their names     #
    #   |           (If there will be multiple items with the same name, it will   #
    #   |            give them all, even from various item categories)             #
    #   |                                                                          #
    #   └► Give All | /give all                                                    #
    #   |    Desc:  Fills your inventory with everything.                          #
    #   |    Usage: /give all #=> Gives EVERYTHING x 99                            #
    #   |                                                                          #
    #   └► Lose All | /lose all                                                    #
    #   |    Desc:  Cleans up your inventory.                                      #
    #   |    Usage: /lose all #=> Removes EVERYTHING x 999                         #
    #   |                                                                          #
    #   └► Spawn Gold | /gold [amount]                                             #
    #   |    Desc:  Adds or removes a specified amount of gold to/from inventory.  #
    #   |    Usage: /gold 1000 #=> Adds 1000 gold to player's inventory            #
    #   |                                                                          #
    #   └► Transfer Player | /tp [map_id] [x] [y]                                  #
    #   |    Desc: Moves player to specific map and coordinates.                   #
    #   |    Usage: /tp 2 4 5 #=> Moves player to [4,5] position on MAP002         #
    #   |                                                                          #
    #   └► Scene Call | /sc scene ("Scene_" is automatically added)                #
    #   |    Desc: Calls a specific scene.                                         #
    #   |    Usage: /sc Menu #=> Calls a Scene_Menu                                #
    #   |                                                                          #
    #   └► Escape From Battle | /run                                               #
    #   |    Desc: Successfully escapes from battle.                               #
    #   |    Usage: /run #=> Escapes from battle and gets back to Map              #
    #   |                                                                          #
    #   └► Force Victory | /win                                                    #
    #        Desc: Forces victory by instant-killing all enemies.                  #
    #        Usage: /win #=> Kills all enemies - Your new secret OP weapon         #
    #                                                                              #
    # [■] Functions - New logical keywords used by this console.                   #
    #   └► Check Value | [var] == ?                                                #
    #   |    Desc: Returns current value from object to the console.               #
    #   |    Usage: $game_variables[5] == ? #=> Returns value from Variable #5     #
    #   |                                                                          #
    #   └► Hook Object | /hook [object]                                            #
    #        Desc: Hooks an object to allow moving/resising by input.              #
    #        Usage: /hook @status_window #=> Hooks f.e. a party window from menu   #
    #                                                                              #
    # [■] Shortcuts - Replaces keyword into a string when pressing [TAB] button.   #
    #   └► Variables | #v                                                          #
    #   |    Desc: Code used to handle variables.                                  #
    #   |    Usage: #v =[TAB]=> $game_variables => $game_variables[3]              #
    #   |                                                                          #
    #   └► Switches | #s                                                           #
    #   |    Desc: Code used to handle switches.                                   #
    #   |    Usage: #s =[TAB]=> $game_switches => $game_switches[3]                #
    #   |                                                                          #
    #   └► Party Members | #a                                                      #
    #   |    Desc: Refers to a member similar to eg. 'a.hp' in Damage Formulas.    #
    #   |    Usage: #a =[TAB]=> $game_party.members => $game_party.members[3].hp   #
    #   |                                                                          #
    #   └► Party Members | #b                                                      #
    #        Desc: Refers to an enemy similar to eg. 'b.hp' in Damage Formulas.    #
    #        Usage: #b =[TAB]=> $game_troop.members => $game_troop.members[3].hp   #
    #                                                                              #
    # REMEMBER: You can use negative numbers to subtract values / remove items     #
    #                                                                              #
    #                     - More to come in future updates -                       #
    #==============================================================================# 





    end
             



    def create_screenshots
    # Screenshots

    Spoiler













             
    #Some gifs showing this script in action:
    @> Testing stuff on fresh project

    Spoiler







    @> 'HOOK' Command!

    Spoiler







    @> Testing commands ~ Uses version under development
    @> Toying with menu ~ Uses version under development
    end




    def terms_of_use
    -=> You ARE allowed to use this script in non-commercial projects.
    -=> You ARE NOT allowed to use this script in commercial projects.
    -=> You ARE allowed to edit this script to your needs.
    -=> You ARE NOT allowed to repost or post modified versions of this script!!!
    -=> You ARE DEFINITELY NOT allowed to claim this script as your own.
    -=> Crediting me, Rikifive would be heavily appreciated.
    -=> You ARE obligated to read and follow the terms of use of
             CP Keyboard Input script created by Neon Black as well
             
            While I won't kill anybody for breaking these rules, it still would be
            a violation of personal rights, that shouldn't happen.
            By using this script you accept these terms of use.
            Not reading them DOES NOT exempt you from liability.
    end
             



    def put_download_link
            download_link = View attachment RK5 Debug Console V.1.2.1 by Rikifive.txt
            required_script = CP Keyboard Input script v1.0a by Neon Black
             
    #CHANGELOG

    Spoiler#==============================================================================#
    # UPDATES                                                                      #
    # -------                                                                      #
    # [■] 03.05.2016 | Version 1.2.1                                               #
    #   └► you can print hooked object's parameters by pressing [CTRL]             #
    #   └► added changeable opacity of the object to hook command                  #
    #                                                                              #
    # [■] 29.04.2016 | Version 1.2                                                 #
    #   └► added 'Give' command                                                    #
    #   └► added 'Give All' command                                                #
    #   └► added 'Lose All' command                                                #
    #   └► added 'Spawn Gold' command                                              #
    #   └► added 'Noclip' command                                                  #
    #   └► improved help window - it displays information more clearly             #
    #                                                                              #
    # [■] 27.04.2016 | Version 1.1                                                 #
    #   └► added 'Hook' function                                                   #
    #   └► incorrect codes don't crash the game anymore                            #
    #   |  (Thanks to BLACK WYVERN for help with this)                   #
    #   └► all sounds can be configured or disabled                                #
    #   └► 'optimized' script code a little to make it shorter and more effective  #
    #                                                                              #
    # [■] 25.04.2016 | Version 1                                                   #
    #   └► initial release                                                         #
    #==============================================================================# 





    end


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

    本帖子中包含更多资源

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

    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.092707 second(s), 53 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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