赞 | 38 |
VIP | 2420 |
好人卡 | 100 |
积分 | 34 |
经验 | 75384 |
最后登录 | 2025-7-22 |
在线时间 | 3628 小时 |
Lv3.寻梦者 (暗夜天使) 名侦探小柯
- 梦石
- 0
- 星屑
- 3427
- 在线时间
- 3628 小时
- 注册时间
- 2006-9-6
- 帖子
- 37402
   
|
以下引用沉影不器于2008-4-20 11:56:54的发言:
事件无效因为主角正在强制行动中,去掉这个判断,自己写其它判断方式吧,或者另加个开关控制
#--------------------------------------------------------------------------
# ● 判断正面的事件启动
# triggers : 目标队列
#--------------------------------------------------------------------------
def check_event_trigger_there(triggers)
return false if $game_map.interpreter.running? # 这句要是注释掉就能触发了
result = false
front_x = $game_map.x_with_direction(@x, @direction)
front_y = $game_map.y_with_direction(@y, @direction)
for event in $game_map.events_xy(front_x, front_y)
if triggers.include?(event.trigger) and event.priority_type == 1
event.start
result = true
end
end
if result == false and $game_map.counter?(front_x, front_y)
front_x = $game_map.x_with_direction(front_x, @direction)
front_y = $game_map.y_with_direction(front_y, @direction)
for event in $game_map.events_xy(front_x, front_y)
if triggers.include?(event.trigger) and event.priority_type == 1
event.start
result = true
end
end
end
return result
end
搜索这段脚本然后后去掉那句? |
|