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

[转载发布] One Actor Menu

[复制链接]
累计送礼:
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-7-30 20:08:42 | 显示全部楼层 |阅读模式
    One Actor Menu 1.0.0

    by Todd (or DoctorTodd on RMRK)

    Introduction

    A menu that is modified to work as if you are only using one

    actor.

    Features

    Goes to first actor, no actor selection

    Detailed status

    Simple

    Screenshots

    http://desmond.image....png&res=medium

    How to Use

    Paste above main

    Select what window skin you want to use

    Demo

    I don't think it's really necessary.

    Script

    Spoiler                Code:       
    1. #===============================================================================
    2. #
    3. # DT's One Person Menu
    4. # Author: DoctorTodd
    5. # Date (02/19/2012)
    6. # Type: (Menu)
    7. # Version: (1.0.0) (VXA)
    8. # Level: (Simple)
    9. # Email: BeaconGames2011@gmail.com
    10. #
    11. #===============================================================================
    12. #
    13. # NOTES: 1)This script will only work with ace, you may find my VX version on
    14. # RMRK.net and the rpg maker web forums.
    15. #
    16. #===============================================================================
    17. #
    18. # Description: A menu that is modified to work as if you are only using one
    19. # actor.
    20. #
    21. # Credits: Me (DoctorTodd)
    22. #
    23. #===============================================================================
    24. #
    25. # Instructions
    26. # Paste above main.
    27. #
    28. #===============================================================================
    29. #
    30. # Contact me for commercial use, other wise just credit me and don't repost
    31. # without my permission.
    32. #
    33. #===============================================================================
    34. #
    35. # Editing begins 40 and ends on 59.
    36. #
    37. #===============================================================================
    38. module DTOPM
    39.   #Window skin to use, place in system.
    40.   WINDOW = ('Window')
    41.   #Status Window X
    42.   SX = 200
    43.   #Status Window Y
    44.   SY = 75
    45.   #Gold window X
    46.   GX = 40
    47.   #Gold Window Y
    48.   GY = 242
    49.   #Command Window X
    50.   CX = 40
    51.   #Command Window Y
    52.   CY = 75
    53. end
    54. class Scene_Menu < Scene_MenuBase
    55.   #--------------------------------------------------------------------------
    56.   # * Start processing
    57.   #--------------------------------------------------------------------------
    58.   def start
    59.         super
    60.         create_background
    61.         create_command_window
    62.         create_status_window
    63.         create_gold_window
    64.   end
    65.   #--------------------------------------------------------------------------
    66.   # * Create Gold Window
    67.   #--------------------------------------------------------------------------
    68.   def create_gold_window
    69.         @gold_window = Window_Gold.new
    70.         @gold_window.x = (DTOPM::GX)
    71.         @gold_window.y = (DTOPM::GY)
    72.         @gold_window.windowskin = Cache.system(DTOPM::WINDOW)
    73.         @gold_window.height = 55
    74.   end
    75.   #--------------------------------------------------------------------------
    76.   # * Create Status Window
    77.   #--------------------------------------------------------------------------
    78.   def create_status_window
    79.         @status_window = Window_MenuInfo.new((DTOPM::SX), (DTOPM::SY))
    80.         @status_window.windowskin = Cache.system(DTOPM::WINDOW)
    81.   end
    82.   #--------------------------------------------------------------------------
    83.   # * Create Command Window
    84.   #--------------------------------------------------------------------------
    85.   def create_command_window
    86.    @command_window = Window_MenuCommand.new
    87.         @command_window.set_handler(:item,          method(:command_item))
    88.         @command_window.set_handler(:skill,         method(:command_skill))
    89.         @command_window.set_handler(:equip,         method(:command_equip))
    90.         @command_window.set_handler(:status,        method(:command_status))
    91.         @command_window.set_handler(:save,          method(:command_save))
    92.         @command_window.set_handler(:game_end,  method(:command_game_end))
    93.         @command_window.set_handler(:cancel,        method(:return_scene))
    94.         @command_window.x = (DTOPM::CX)
    95.         @command_window.y = (DTOPM::CY)
    96.         end
    97.   end
    98. #--------------------------------------------------------------------------
    99.   # * [Item] Command
    100.   #--------------------------------------------------------------------------
    101.   def command_item
    102.         SceneManager.call(Scene_Item)
    103.   end
    104.   #--------------------------------------------------------------------------
    105.   # * [Equipment] Command
    106.   #--------------------------------------------------------------------------
    107.   def command_equip
    108.         @actor = $game_party.members[0]
    109.         SceneManager.call(Scene_Equip)
    110.   end
    111.   #--------------------------------------------------------------------------
    112.   # * [Status] Command
    113.   #--------------------------------------------------------------------------
    114.   def command_status
    115.         @actor = $game_party.members[0]
    116.         SceneManager.call(Scene_Status)
    117.   end
    118.   #--------------------------------------------------------------------------
    119.   # * [Save] Command
    120.   #--------------------------------------------------------------------------
    121.   def command_save
    122.         SceneManager.call(Scene_Save)
    123.   end
    124.   #--------------------------------------------------------------------------
    125.   # * [Exit Game] Command
    126.   #--------------------------------------------------------------------------
    127.   def command_game_end
    128.         SceneManager.call(Scene_End)
    129.   end
    130.   #--------------------------------------------------------------------------
    131.   # * [Skill] Command
    132.   #--------------------------------------------------------------------------
    133.   def command_skill
    134.         @actor = $game_party.members[0]
    135.           SceneManager.call(Scene_Skill)
    136.         end
    137. #===================================================================
    138. # ** Window_MenuStatus
    139. #------------------------------------------------------------------------------
    140. #  This window displays the characters status on the menu screen.
    141. #==============================================================================
    142. class Window_MenuInfo < Window_Base
    143.   #--------------------------------------------------------------------------
    144.   # * Object Initialization
    145.   #         x : window X coordinate
    146.   #         y : window Y coordinate
    147.   #--------------------------------------------------------------------------
    148.   def initialize(x, y)
    149.         super(x, y, 300, 221)
    150.         refresh
    151.   end
    152.   #--------------------------------------------------------------------------
    153.   # * Refresh
    154.   #--------------------------------------------------------------------------
    155.   def refresh
    156.         self.contents.clear
    157.          @actor = $game_party.members[0]
    158.           draw_actor_face(@actor, 0, 0)
    159.           draw_actor_name(@actor, 110, 5)
    160.           draw_actor_level(@actor, 190, 5)
    161.           draw_actor_hp(@actor, 110 ,40)
    162.           draw_actor_mp(@actor, 110 , 65)
    163.           draw_actor_param(@actor, 0, 100, 0)
    164.           draw_actor_param(@actor, 0, 124, 1)
    165.           draw_actor_param(@actor, 0, 148, 2)
    166.           draw_actor_param(@actor, 0, 172, 3)
    167.           draw_actor_graphic(@actor, 220, 160)
    168.           draw_actor_icons(@actor, 190, 180, width = 96)
    169.         end
    170.   end
    171.   #==============================================================================
    172. # ** Window_MenuCommand
    173. #------------------------------------------------------------------------------
    174. #  This command window appears on the menu screen.
    175. #==============================================================================
    176. class Window_MenuCommand < Window_Command
    177.   #--------------------------------------------------------------------------
    178.   # * Initialize Command Selection Position (Class Method)
    179.   #--------------------------------------------------------------------------
    180.   def self.init_command_position
    181.         @@last_command_symbol = nil
    182.   end
    183.   #--------------------------------------------------------------------------
    184.   # * Object Initialization
    185.   #--------------------------------------------------------------------------
    186.   def initialize
    187.         super(0, 0)
    188.         select_last
    189.   end
    190.   #--------------------------------------------------------------------------
    191.   # * Get Window Width
    192.   #--------------------------------------------------------------------------
    193.   def window_width
    194.         return 160
    195.   end
    196.   #--------------------------------------------------------------------------
    197.   # * Get Number of Lines to Show
    198.   #--------------------------------------------------------------------------
    199.   def visible_line_number
    200.         item_max
    201.   end
    202.   #--------------------------------------------------------------------------
    203.   # * Create Command List
    204.   #--------------------------------------------------------------------------
    205.   def make_command_list
    206.         add_main_commands
    207.         add_original_commands
    208.         add_save_command
    209.         add_game_end_command
    210.   end
    211.   #--------------------------------------------------------------------------
    212.   # * Add Main Commands to List
    213.   #--------------------------------------------------------------------------
    214.   def add_main_commands
    215.         add_command(Vocab::item,   :item,   main_commands_enabled)
    216.         add_command(Vocab::skill,  :skill,  main_commands_enabled)
    217.         add_command(Vocab::equip,  :equip,  main_commands_enabled)
    218.         add_command(Vocab::status, :status, main_commands_enabled)
    219.   end
    220.   #--------------------------------------------------------------------------
    221.   # * For Adding Original Commands
    222.   #--------------------------------------------------------------------------
    223.   def add_original_commands
    224.   end
    225.   #--------------------------------------------------------------------------
    226.   # * Add Save to Command List
    227.   #--------------------------------------------------------------------------
    228.   def add_save_command
    229.         add_command(Vocab::save, :save, save_enabled)
    230.   end
    231.   #--------------------------------------------------------------------------
    232.   # * Add Exit Game to Command List
    233.   #--------------------------------------------------------------------------
    234.   def add_game_end_command
    235.         add_command(Vocab::game_end, :game_end)
    236.   end
    237.   #--------------------------------------------------------------------------
    238.   # * Get Activation State of Main Commands
    239.   #--------------------------------------------------------------------------
    240.   def main_commands_enabled
    241.         $game_party.exists
    242.   end
    243.   #--------------------------------------------------------------------------
    244.   # * Get Activation State of Formation
    245.   #--------------------------------------------------------------------------
    246.   def formation_enabled
    247.         $game_party.members.size >= 2 && !$game_system.formation_disabled
    248.   end
    249.   #--------------------------------------------------------------------------
    250.   # * Get Activation State of Save
    251.   #--------------------------------------------------------------------------
    252.   def save_enabled
    253.         !$game_system.save_disabled
    254.   end
    255.   #--------------------------------------------------------------------------
    256.   # * Processing When OK Button Is Pressed
    257.   #--------------------------------------------------------------------------
    258.   def process_ok
    259.         @@last_command_symbol = current_symbol
    260.         super
    261.   end
    262.   #--------------------------------------------------------------------------
    263.   # * Restore Previous Selection Position
    264.   #--------------------------------------------------------------------------
    265.   def select_last
    266.         select_symbol(@@last_command_symbol)
    267.   end
    268. end
    复制代码





    FAQ

    None right now.

    Credit and Thanks

    - Todd

    Author's Notes

    Free for non-commercial and commercial games. You must credit me! If you use this in a commercial game I expect a free copy.


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

    使用道具 举报

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

    本版积分规则

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

    幸运抽奖

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

    立即查看

    聊天机器人
    Loading...

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

    GMT+8, 2026-8-17 16:04 , Processed in 0.069362 second(s), 54 queries .

    Powered by Discuz! X3.4

    Copyright © 2001-2020, Tencent Cloud.

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