广场
工具/教程/素材
超评测活动结果
第29届极短篇游戏制作比赛
优秀游戏推荐
非官方运行时(20250730)
登录
RPGMaker工具集[20250416]
基础教程
授权素材推广
优秀原创游戏区
精品推荐贴
【RGD】DirectX驱动的RMVA
RGSS3 - runtime by Lanza
【RGM】RGModern - RMXP新runtime
【URGE】兼容 XP/VX/Ace 三系通用跨平台游戏引擎
Project1
»
广场
›
技术讨论
›
RPG Maker XP 讨论区
›
背包栏快速打开,有新样式的最好
返回列表
发新帖
查看:
1589
|
回复:
3
[已经解决]
背包栏快速打开,有新样式的最好
[复制链接]
574656549
574656549
当前离线
赞
3
VIP
好人卡
积分
2
经验
最后登录
2026-8-20
在线时间
935 小时
写轮眼
头像被屏蔽
梦石
0
星屑
172
在线时间
935 小时
注册时间
2010-11-13
回帖
897
发消息
发表于 2011-2-12 18:42:39
|
显示全部楼层
|
阅读模式
提示:
作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复
使用道具
举报
提升卡
沉默号角
喧嚣号角
变色卡
升龙剑
574656549
574656549
当前离线
赞
3
VIP
好人卡
积分
2
经验
最后登录
2026-8-20
在线时间
935 小时
写轮眼
头像被屏蔽
梦石
0
星屑
172
在线时间
935 小时
注册时间
2010-11-13
回帖
897
发消息
楼主
|
发表于 2011-2-12 18:43:36
|
显示全部楼层
提示:
作者被禁止或删除 内容自动屏蔽
签名被屏蔽
回复
使用道具
举报
bzzdhm
bzzdhm
当前离线
赞
0
VIP
好人卡
积分
1
经验
最后登录
2016-8-15
在线时间
47 小时
写轮眼
梦石
0
星屑
50
在线时间
47 小时
注册时间
2009-8-30
回帖
442
发消息
发表于 2011-2-12 18:56:04
|
显示全部楼层
在要打开物品的地方用
scene = Scene_Item.new
复制代码
回复
使用道具
举报
Wind2010
Wind2010
当前离线
赞
0
VIP
好人卡
积分
1
经验
最后登录
2023-11-23
在线时间
1782 小时
写轮眼
虱子
梦石
0
星屑
121
在线时间
1782 小时
注册时间
2010-6-19
回帖
3515
发消息
发表于 2011-2-12 19:51:39
|
显示全部楼层
#==============================================================================
# ■ 本脚本源自www.66rpg.com,转载与使用请保留此信息
#==============================================================================
#==============================================================================
# 菜单快捷键 by Claimh
#------------------------------------------------------------------------------
# http://www.k3.dion.ne.jp/~claimh/
#==============================================================================
module SHORTCUT
USE_ITEM_SHORT = true #——开启物品菜单快捷键
USE_SKILL_SHORT = true #——开启特技菜单快捷键
USE_EQUIP_SHORT = true #——开启装备菜单快捷键
USE_SAVE_SHORT = true #——开启储存菜单快捷键
CHANGE_ITEM = Input::X #——物品快捷键的键位
CHANGE_SKILL = Input::Y #——特技快捷键的键位
CHANGE_EQUIP = Input::Z #——装备快捷键的键位
CHANGE_SAVE = Input::A #——储存快捷键的键位
#----------------------------------------------------------------------------
#----------------------------------------------------------------------------
end
#==============================================================================
# Scene_Map
#==============================================================================
class Scene_Map
include SHORTCUT
alias update_short update
def update
update_short
menu_shortcut
end
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
def menu_shortcut
if Input.trigger?(CHANGE_ITEM) and USE_ITEM_SHORT
unless $game_system.map_interpreter.running? or
$game_system.menu_disabled
$game_temp.menu_calling = true
$game_temp.menu_beep = true
$item_short = true
call_item
end
end
if Input.trigger?(CHANGE_SKILL) and USE_SKILL_SHORT
unless $game_system.map_interpreter.running? or
$game_system.menu_disabled
$game_temp.menu_calling = true
$game_temp.menu_beep = true
$skill_short = true
call_skill
end
end
if Input.trigger?(CHANGE_EQUIP) and USE_EQUIP_SHORT
unless $game_system.map_interpreter.running? or
$game_system.menu_disabled
$game_temp.menu_calling = true
$game_temp.menu_beep = true
$equip_short = true
call_equip
end
end
if Input.trigger?(CHANGE_SAVE) and USE_SAVE_SHORT
unless $game_system.map_interpreter.running? or
$game_system.menu_disabled
$game_temp.menu_calling = true
$game_temp.menu_beep = true
$save_short = true
call_save
end
end
end
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
def call_item
$game_temp.menu_calling = false
if $game_temp.menu_beep
$game_system.se_play($data_system.decision_se)
$game_temp.menu_beep = false
end
$game_player.straighten
$scene = Scene_Item.new
end
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
def call_skill
$game_temp.menu_calling = false
if $game_temp.menu_beep
$game_system.se_play($data_system.decision_se)
$game_temp.menu_beep = false
end
$game_player.straighten
$scene = Scene_Skill.new
end
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
def call_equip
$game_temp.menu_calling = false
if $game_temp.menu_beep
$game_system.se_play($data_system.decision_se)
$game_temp.menu_beep = false
end
$game_player.straighten
$scene = Scene_Equip.new
end
#--------------------------------------------------------------------------
#--------------------------------------------------------------------------
def call_save
$game_temp.menu_calling = false
if $game_temp.menu_beep
$game_system.se_play($data_system.decision_se)
$game_temp.menu_beep = false
end
$game_player.straighten
$scene = Scene_Save.new
end
end
#==============================================================================
# Scene_Item
#==============================================================================
class Scene_Item
alias update_item_short update_item
def update_item
if Input.trigger?(Input::B) and $item_short
$item_short = false
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
return
end
update_item_short
end
end
#==============================================================================
# Scene_Skill
#==============================================================================
class Scene_Skill
alias update_skill_short update_skill
def update_skill
if Input.trigger?(Input::B) and $skill_short
$skill_short = false
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
return
end
update_skill_short
end
end
#==============================================================================
# Scene_Equip
#==============================================================================
class Scene_Equip
alias update_equip_short update_right
def update_right
if Input.trigger?(Input::B) and $equip_short
$equip_short = false
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
return
end
update_equip_short
end
end
#==============================================================================
# Scene_Save
#==============================================================================
class Scene_Save
alias update_save_short on_cancel
def on_cancel
if $save_short
$save_short = false
$game_system.se_play($data_system.cancel_se)
$scene = Scene_Map.new
return
end
update_save_short
end
alias save_decision on_decision
def on_decision(filename)
if $save_short
$game_system.se_play($data_system.save_se)
file = File.open(filename, "wb")
write_save_data(file)
file.close
$save_short
$scene = Scene_Map.new
end
save_decision
end
end
复制代码
点评
574656549
这个比较好哦
发表于 2011-2-12 21:25
评分
参与人数
1
星屑
+2
收起
理由
574656549
+ 2
认可答案
查看全部评分
http://rpg.blue/thread-175056-1-2.html
PVZ型塔防物一个
http://rpg.blue/thread-155199-1-2.html
RMXP技术讨论区手动认可帖,得到答案请认可
回复
使用道具
举报
返回列表
发新帖
高级模式
B
Color
Image
Link
Quote
Code
Smilies
您需要登录后才可以回帖
登录
|
注册会员
本版积分规则
发表回复
回帖并转播
回帖后跳转到最后一页
浏览过的版块
版务专区
Archiver
|
手机版
|
小黑屋
|
Project1游戏制作
Powered by
Discuz!
X5.0
© 2001-2026
Discuz! Team
.
在本版发帖
返回顶部
快速回复
返回顶部
返回列表