✓ ESS21仅限 关于怎么把甜甜香气从召唤一个精灵,变成三个精灵

Miku

宝可梦训练家
2024/05/07
27
1
0
195
def pbSweetScent
if $game_screen.weather_type != :None
pbMessage(_INTL("因为某些原因,香气消散了……"))
return
end
viewport = Viewport.new(0, 0, Graphics.width, Graphics.height)
viewport.z = 99999
viewport.color.red = 255
viewport.color.green = 32
viewport.color.blue = 32
viewport.color.alpha -= 10
pbSEPlay("Sweet Scent")
start_alpha = viewport.color.alpha
duration = 2.0
fade_time = 0.4
pbWait(duration) do |delta_t|
if delta_t < duration / 2
viewport.color.alpha = lerp(start_alpha, start_alpha + 128, fade_time, delta_t)
else
viewport.color.alpha = lerp(start_alpha + 128, start_alpha, fade_time, delta_t - duration + fade_time)
end
end
viewport.dispose
pbSEStop(0.5)
enctype = $PokemonEncounters.encounter_type
if !enctype || !$PokemonEncounters.encounter_possible_here? ||
!pbEncounter(enctype, false)
pbMessage(_INTL("这里好像什么都没有……"))
end
end

HiddenMoveHandlers::CanUseMove.add:)SWEETSCENT, proc { |move, pkmn, showmsg|
next true
})

HiddenMoveHandlers::UseMove.add:)SWEETSCENT, proc { |move, pokemon|
if !pbHiddenMoveAnimation(pokemon)
pbMessage(_INTL("{1}使出了{2}!", pokemon.name, GameData::Move.get(move).name))
end
pbSweetScent
next true
})
 

在线成员

现在没有成员在线。

最新帖子

论坛统计

主题
517
消息
2,352
成员
3,007
最新成员
ZQLdw