本帖最后由 幻耶 于 2009-7-4 12:48 编辑
if $game_variables[5] == 2 and $game_map.events[2].name.include?("f")
$game_variables[36] = (wf.to_i+wfk1.to_i+wfk2.to_i+wfk3.to_i)/2
elsif $game_variables[5] == 2 and $game_map.events[2].name.include?("h")
$game_variables[36] = 0
elsif $game_variables[5] == 2 and $game_map.events[2].name.include?("t")
$game_variables[36] = (wf.to_i+wfk1.to_i+wfk2.to_i+wfk3.to_i)*2
else
$game_variables[36] = wf.to_i+wfk1.to_i+wfk2.to_i+wfk3.to_i
end
for i in 1..20
if $game_variables[5] == i and $game_map.events【i】.name.include?("f")
$game_variables[36] = (wf.to_i+wfk1.to_i+wfk2.to_i+wfk3.to_i)/2
elsif $game_variables[5] == i and $game_map.events.name.include?("h")
$game_variables[36] = 0
elsif $game_variables[5] == i and $game_map.events.name.include?("t")
$game_variables[36] = (wf.to_i+wfk1.to_i+wfk2.to_i+wfk3.to_i)*2
else
$game_variables[36] = wf.to_i+wfk1.to_i+wfk2.to_i+wfk3.to_i
end
end
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |