| 赞 | 1 |
| VIP | |
| 好人卡 | |
| 积分 | 4 |
| 经验 | |
| 最后登录 | 2015-5-11 |
| 在线时间 | 1291 小时 |
- 梦石
- 0
- 星屑
- 407
- 在线时间
- 1291 小时
- 注册时间
- 2013-1-12
- 回帖
- 3349

|
发表于 2013-9-29 13:13:59
|
显示全部楼层
本帖最后由 76213585 于 2013-9-28 22:18 编辑
這次就不支持隨機了阿
可是支持樣示(透明 黑底 正常)
然後第一次對話完後就會把設定好的開關打開 就不會顯示
而如果需要再次顯示 就再把設定的開關號給關掉吧
================
好吧 沒看到你後面加的 這次又增加了多句的效果
在Text2 = [true, "Beat ya!"] 中的 true代表是否顯示 不要的話就改為false
然後"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
复制代码 |
评分
-
查看全部评分
|