赞 | 14 |
VIP | 0 |
好人卡 | 4 |
积分 | 24 |
经验 | 30333 |
最后登录 | 2024-3-12 |
在线时间 | 912 小时 |
Lv3.寻梦者
- 梦石
- 0
- 星屑
- 2392
- 在线时间
- 912 小时
- 注册时间
- 2014-10-14
- 帖子
- 1331

|
4楼

楼主 |
发表于 2017-6-20 22:17:19
|
只看该作者
本帖最后由 j296196585 于 2017-6-20 22:22 编辑
初始脚本
大概就是下图这个样子 不知道行不行
本来一直在做XP游戏 XP脚本也摸索的差不多 只是战斗系统崩溃 就转战VA了
class Scene_FF < Scene_Base def start super c_ff end def c_ff @bl = W_FF.new @bl.set_handler(:cancel, method(:return_scene)) end end class W_FF < Window_Selectable def initialize super(0,0,544,416) refresh activate end def refresh contents.clear if $game_switches[202]==true contents.font.color = Color.new(0, 255, 0, 255) draw_text(0, 0, 128, 32,"剑越卄" ) case $game_variables[52] when 0 draw_text(88, 0, 126, 32,"一面之缘" ) when 10 draw_text(88, 0, 126, 32,"颇有好感" ) when 20 draw_text(88, 0, 126, 32,"惺惺相惜" ) when 30 draw_text(88, 0, 126, 32,"爱慕倾心" ) when 40 draw_text(88, 0, 126, 32,"生死与共" ) end end if $game_switches[203]==true contents.font.color = Color.new(0, 255, 0, 255) draw_text(0, 32, 128, 32,"幻羽" ) case $game_variables[53] when -10 draw_text(88, 32, 126, 32,"不胜厌恶" ) when 0 draw_text(88, 32, 126, 32,"一面之缘" ) when 10 draw_text(88, 32, 126, 32,"颇有好感" ) when 20 draw_text(88, 32, 126, 32,"惺惺相惜" ) when 30 draw_text(88, 32, 126, 32,"爱慕倾心" ) when 40 draw_text(88, 32, 126, 32,"生死与共" ) end end if $game_switches[202]==false draw_text(250, 200, 126, 32,"暂无人物关系" ) end end end
class Scene_FF < Scene_Base
def start
super
c_ff
end
def c_ff
@bl = W_FF.new
@bl.set_handler(:cancel, method(:return_scene))
end
end
class W_FF < Window_Selectable
def initialize
super(0,0,544,416)
refresh
activate
end
def refresh
contents.clear
if $game_switches[202]==true
contents.font.color = Color.new(0, 255, 0, 255)
draw_text(0, 0, 128, 32,"剑越卄" )
case $game_variables[52]
when 0
draw_text(88, 0, 126, 32,"一面之缘" )
when 10
draw_text(88, 0, 126, 32,"颇有好感" )
when 20
draw_text(88, 0, 126, 32,"惺惺相惜" )
when 30
draw_text(88, 0, 126, 32,"爱慕倾心" )
when 40
draw_text(88, 0, 126, 32,"生死与共" )
end
end
if $game_switches[203]==true
contents.font.color = Color.new(0, 255, 0, 255)
draw_text(0, 32, 128, 32,"幻羽" )
case $game_variables[53]
when -10
draw_text(88, 32, 126, 32,"不胜厌恶" )
when 0
draw_text(88, 32, 126, 32,"一面之缘" )
when 10
draw_text(88, 32, 126, 32,"颇有好感" )
when 20
draw_text(88, 32, 126, 32,"惺惺相惜" )
when 30
draw_text(88, 32, 126, 32,"爱慕倾心" )
when 40
draw_text(88, 32, 126, 32,"生死与共" )
end
end
if $game_switches[202]==false
draw_text(250, 200, 126, 32,"暂无人物关系" )
end
end
end
|
|