76213585 发表于 2013-9-29 02:04
好吧 比想像的簡單
此腳本插入main以上 支持隨機對話.....
然後 Text = "Beat ya!" 內的"Beat ya!"可以 ...
module Panda #需要顯示的文字 Text = "Beat ya!" Text2 = [true, "Beat ya!"] Text3 = [false, "Beat ya!"] Type = 1 #表示普通窗口、背景变暗、透明,三种效果 Pose = 3 #表示上、中、下,三个位置 Switch_Num = 1 end class Scene_Battle < Scene_Base def terminate super if $game_switches[Panda::Switch_Num] == true else $game_message.position = Panda::Pose $game_message.background = Panda::Type $game_message.texts.push(Panda::Text) $game_message.texts.push(Panda::Text2[1]) if Panda::Text2[0] $game_message.texts.push(Panda::Text3[1]) if Panda::Text3[0] $game_switches[Panda::Switch_Num] = true end dispose_info_viewport @message_window.dispose @spriteset.dispose unless $scene.is_a?(Scene_Gameover) $scene = nil if $BTEST end end end
脚本出现问题.jpg (103.9 KB, 下载次数: 27)
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |