Project1
标题:
有没有【SiNova DLL】的【点击图片】扩展脚本
[打印本页]
作者:
zy652301
时间:
2015-8-13 13:31
标题:
有没有【SiNova DLL】的【点击图片】扩展脚本
就是在【SiNova多功能DLL】(置顶帖中的精品脚本)的基础上增加点击图片的功能。
https://rpg.blue/thread-347535-1-1.html
作者:
neverstop
时间:
2015-8-14 12:47
class Game_Picture
def name=(str)
@name = str
end
end
class Sprite_Picture
alias update_old update
def update
update_old
return if @picture.name == "" or @picture.name[/cmd/].nil?
mx = Mouse.x
my = Mouse.y
lx = self.x - self.ox
rx = lx + self.bitmap.width
ty = self.y - self.oy
by = ty + self.bitmap.height
if mx < lx or mx > rx or my < ty or my > by or
self.bitmap.get_pixel(mx-lx,my-ty).alpha == 0
@picture.name = @picture.name.split(/_/)[0]
return
end
if @picture.name.split(/_/)[1].nil?
$game_variables[100] = @picture.name.to_s
@picture.name = @picture.name + "_2"
end
if Mouse.trigger?(:L) &&
[email protected]
(/_/)[0].nil?
@picture.name.split(/_/)[0].sub(/cmd([0-9]+)/,"")
$game_temp.reserve_common_event($1.to_i)
end
end
end
复制代码
是在原帖的回复中翻出来的。。。不知道是不是
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1