查看: 2253|回复: 0

[已经过期] 求脚本帝写“调查提示”脚本

[复制链接]
梦石
0
星屑
50
在线时间
646 小时
注册时间
2011-6-23
回帖
231
发表于 2013-6-25 14:44:11 | 显示全部楼层 |阅读模式

加入我们,或者,欢迎回来。

您需要 登录 才可以下载或查看,没有账号?注册会员

×
之前提过这个问题,不过秒沉了- -
要求:

    通过在事件中插入脚本“调查提示1”或“调查提示2” ,在画面的左下方显示一个对话框,内容为“调查”
    当用户在事件中插入脚本“调查提示1”时,判断方式为:当主角面向该事件时,在画面的左下方显示一个对话框,内容为“调查”
    当用户在事件中插入脚本“调查提示2”时,判断方式为:当主角的xy坐标=该事件xy坐标时,在画面的左下方显示一个对话框,内容为“调查”



附上我按教程写了1%的脚本
  1. #===============================================================================
  2. #                                 调查提示脚本
  3. #===============================================================================
  4. module Window_Survey_Preparation
  5.   Expression = /调查类型(\d+)/
  6. end

  7. class Window_Survey < Window_Base
  8.   #=============================================================================
  9.   #                                 初始化
  10.   #=============================================================================
  11.   def initialize
  12.     super(484,371, 60, 45)
  13.     self.opacity = 180
  14.     self.padding = 2
  15.     self.padding_bottom = 0
  16.     refresh
  17.   end
  18.   #=============================================================================
  19.   #                                刷新画面
  20.   #=============================================================================
  21.   def update
  22.     super
  23.     refresh
  24.   end
  25.   #=============================================================================
  26.   #                                更新内容
  27.   #=============================================================================
  28.   def refresh
  29.     self.contents.clear
  30.     self.contents.font.size = 16
  31.     self.contents.draw_text(0,0,self.contents.width + 8,self.contents.height + 8,"调查",1)
  32.   end
  33. end
复制代码
越快越好
请叫我RC君
某些过于XX的内容会用白字,所以请多多使用ctrl+a
您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

Powered by Discuz! X5.0 © 2001-2026 Discuz! Team.

在本版发帖返回顶部