ZS Skills on Status Menu // Forum request. Shows an actor's skills, and an optional toggle feature.
Customization:
- Adjust the amount of skills shown.
- Adjust the toggle button + whether or not you wish for toggle to be enabled.
Screenshots:
Setup:
- Paste under the Materials slot, above main.
Known issues:
- Any scripts that don't alias draw_block3(y) as well may not be compatible with this script.
Usage Notes:
- Don't remove the script's credits or header.
- Script is allowed for commercial and non-commercial projects.
- Extra Credits: TOMO, for the skills drawing setup.
Code: - #==============================================================================
- #
- # ** Title: ZS Skills on Status Menu 1.0
- # Created: August 2019 (forum request)
- # Creator: ZirconStorms
- # Extra Credits: TOMO (tm.lucky-duet.com/viewtopic.php?t=3119)
- #
- #------------------------------------------------------------------------------
- # ** Description: Toggles showing an actor's skills and equipment.
- #------------------------------------------------------------------------------
- #
- # Script is allowed for commercial and non-commercial games.
- # Do not remove this script's credits or header.
- # In the game's credits or read.me, credit "ZirconStorms".
- # No compatibility fixes will be provided unless frequently asked.
- #
- #==============================================================================
- # Customizable Section Begins Here.
- #==============================================================================
- module ZSSKILLSONSTATUS
-
- SKILL_LINE_LIMIT = 6
- #The amount of skills you want shown on screen. (One skill per line.)
-
- TOGGLE_FEATURE = false
- #if set to false, you will only be able to see an actor's skills.
-
- TOGGLE_BUTTON = :C
- #The button you want to use to toggle showing equipment and skills.
- #Recommended - :C, :SHIFT
-
- end
- #==============================================================================
- # Customizable Section Ends Here.
- #==============================================================================
- class Window_Status < Window_Selectable
- #--------------------------------------------------------------------------
- # * Draw Block 3
- #--------------------------------------------------------------------------
- def draw_block3(y)
- draw_parameters(32, y)
- if @drawskills == true
- draw_skills(288,y)
- else
- if ZSSKILLSONSTATUS::TOGGLE_FEATURE == true
- draw_equipments(288, y)
- else
- draw_skills(288,y)
- end
- end
- end
- #--------------------------------------------------------------------------
- # * Draw Skills
- #--------------------------------------------------------------------------
- def draw_skills(x, y)
- @actor.skills.each_with_index do |item, i|
- break if i >= 6
- draw_item_name(item, x, y + line_height * i)
- end
- end
- #--------------------------------------------------------------------------
- # * Update
- #--------------------------------------------------------------------------
- def update
- super
- if Input.trigger?(ZSSKILLSONSTATUS::TOGGLE_BUTTON)
- @drawskills = @drawskills == true ? false : true
- refresh
- end
- end
- #--------------------------------------------------------------------------
- end
复制代码
本贴来自国际rpgmaker官方论坛作者:tvghost处,因国际论坛即将永久关站,为了存档多年珍贵资料,署名转载到本论坛存档,由于官方帖子为英文原帖,需要中文翻译请点击论坛顶部切换语言为中文就可以将帖子翻译成中文浏览,方便大家随时查看,原文地址: https://forums.rpgmakerweb.com/threads/zs-skills-on-status-menu.112178/ |