Project1
标题:
求一个还算简单的脚本
[打印本页]
作者:
星语心の梦
时间:
2008-7-29 03:44
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 03:47
http://rpg.blue/web/htm/news713.htm
這是你需要的東西么~?
作者:
星语心の梦
时间:
2008-7-29 03:52
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 03:59
http://rpg.blue/upload_program/files/八人制战斗_97703892.rar
我改了一下腳本~~~你下來看看合意不?
作者:
星语心の梦
时间:
2008-7-29 04:06
提示:
作者被禁止或删除 内容自动屏蔽
作者:
星语心の梦
时间:
2008-7-29 04:07
提示:
作者被禁止或删除 内容自动屏蔽
作者:
星语心の梦
时间:
2008-7-29 04:08
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 04:10
那個血槽可以在MAIN前加上
#==============================================================================
# ■ Window_Help
#------------------------------------------------------------------------------
# 重新定义的内容,可以显示敌人的HP\MP百分比
# 你可以改脚本的开头部分定义生命、精神描述词。只和敌人描述有关,可随意修改
#==============================================================================
class Window_Help < Window_Base
def set_enemy(actor)
#--------------------------------------------------------------------
# 在这里修改描述文字,比如@生命描述词="敌人生命"
#--------------------------------------------------------------------
@生命描述词 = $data_system.words.hp
@精神描述词 = $data_system.words.sp
#--------------------------------------------------------------------
#--------------------------------------------------------------------
self.contents.clear
draw_actor_name(actor, 4, 0)
draw_actor_state(actor, 140, 0)
carol3_draw_hp_bar(actor, 284, 12)
carol3_draw_sp_bar(actor, 460, 12)
@text = nil
self.visible = true
end
def carol3_draw_hp_bar(actor, x, y, width = 128, height = 14) #宽度可调
w = width * actor.hp / [actor.maxhp,1].max
hp_color_1 = Color.new(255, 0, 0, 192)
hp_color_2 = Color.new(255, 255, 0, 192)
self.contents.fill_rect(x+8, y+4, width, (height/4).floor, Color.new(0, 0, 0, 128))
draw_line(x, y, x + w, y, hp_color_1, (height/4).floor, hp_color_2)
x -= 1
y += (height/4).floor
self.contents.fill_rect(x+8, y+4, width, (height/4).ceil , Color.new(0, 0, 0, 128))
draw_line(x, y, x + w, y, hp_color_1, (height/4).ceil , hp_color_2)
x -= 1
y += (height/4).ceil
self.contents.fill_rect(x+8, y+4, width, (height/4).ceil , Color.new(0, 0, 0, 128))
draw_line(x, y, x + w, y, hp_color_1, (height/4).ceil , hp_color_2)
x -= 1
y += (height/4).ceil
self.contents.fill_rect(x+8, y+4, width, (height/4).floor, Color.new(0, 0, 0, 128))
draw_line(x, y, x + w, y, hp_color_1, (height/4).floor, hp_color_2)
self.contents.font.color = Color.new(0,0,0,255)
self.contents.draw_text(x+2,-3,128,32,@生命描述词,1)
self.contents.font.color = Color.new(255,255,255,255)
self.contents.draw_text(x,-4,128,32,@生命描述词,1)
end
def carol3_draw_sp_bar(actor, x, y, width = 128, height=14)
w = width * actor.sp / [actor.maxsp,1].max
hp_color_1 = Color.new( 0, 0, 255, 192)
hp_color_2 = Color.new( 0, 255, 255, 192)
self.contents.fill_rect(x+8, y+4, width, (height/4).floor, Color.new(0, 0, 0, 128))
draw_line(x, y, x + w, y, hp_color_1, (height/4).floor, hp_color_2)
x -= 1
y += (height/4).floor
self.contents.fill_rect(x+8, y+4, width, (height/4).ceil , Color.new(0, 0, 0, 128))
draw_line(x, y, x + w, y, hp_color_1, (height/4).ceil , hp_color_2)
x -= 1
y += (height/4).ceil
self.contents.fill_rect(x+8, y+4, width, (height/4).ceil , Color.new(0, 0, 0, 128))
draw_line(x, y, x + w, y, hp_color_1, (height/4).ceil , hp_color_2)
x -= 1
y += (height/4).ceil
self.contents.fill_rect(x+8, y+4, width, (height/4).floor, Color.new(0, 0, 0, 128))
draw_line(x, y, x + w, y, hp_color_1, (height/4).floor, hp_color_2)
self.contents.font.color = Color.new(0,0,0,255)
self.contents.draw_text(x+2,-3,128,32,@精神描述词,1)
self.contents.font.color = Color.new(255,255,255,255)
self.contents.draw_text(x,-4,128,32,@精神描述词,1)
end
#--------------------------------------------------------------------------
# ● ライン描画 by 桜雅 在土
#--------------------------------------------------------------------------
def draw_line(start_x, start_y, end_x, end_y, start_color, width = 1, end_color = start_color)
# 描写距離の計算。大きめに直角時の長さ。
distance = (start_x - end_x).abs + (start_y - end_y).abs
# 描写開始
if end_color == start_color
for i in 1..distance
x = (start_x + 1.0 * (end_x - start_x) * i / distance).to_i
y = (start_y + 1.0 * (end_y - start_y) * i / distance).to_i
if width == 1
self.contents.set_pixel(x, y, start_color)
else
self.contents.fill_rect(x, y, width, width, start_color)
end
end
else
for i in 1..distance
x = (start_x + 1.0 * (end_x - start_x) * i / distance).to_i
y = (start_y + 1.0 * (end_y - start_y) * i / distance).to_i
r = start_color.red * (distance-i)/distance + end_color.red * i/distance
g = start_color.green * (distance-i)/distance + end_color.green * i/distance
b = start_color.blue * (distance-i)/distance + end_color.blue * i/distance
a = start_color.alpha * (distance-i)/distance + end_color.alpha * i/distance
if width == 1
self.contents.set_pixel(x, y, Color.new(r, g, b, a))
else
self.contents.fill_rect(x, y, width, width, Color.new(r, g, b, a))
end
end
end
end
end
复制代码
不知道會不會有衝突~你試試看~~~應該沒問題
作者:
虚幻死神
时间:
2008-7-29 04:12
至於那個菜單~~你完全不用操心啦~
直接加上去就OK了~
作者:
星语心の梦
时间:
2008-7-29 04:22
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 04:23
其實你看看頂貼的腳本教學可能會有點幫助~~~
你去看看吧~~
對你以後都有幫助!
作者:
星语心の梦
时间:
2008-7-29 04:35
提示:
作者被禁止或删除 内容自动屏蔽
作者:
星语心の梦
时间:
2008-7-29 04:36
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 04:49
那你可以調下XY值~就ok了~
作者:
星语心の梦
时间:
2008-7-29 04:52
提示:
作者被禁止或删除 内容自动屏蔽
作者:
星语心の梦
时间:
2008-7-29 04:53
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 04:59
原版?
說說要求?
作者:
星语心の梦
时间:
2008-7-29 05:09
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 05:15
那個~~我幫不了你啦~~~高難度了點~~
還是另請高明吧~~~{/ll}
作者:
星语心の梦
时间:
2008-7-29 05:37
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 05:41
你搞的是召喚獸么?
我找到點東西~可能對你有用~~~
http://rpg.blue/web/htm/news576.htm
你去看看~~~
作者:
星语心の梦
时间:
2008-7-29 05:51
提示:
作者被禁止或删除 内容自动屏蔽
作者:
虚幻死神
时间:
2008-7-29 05:56
那這個調整XY不就OK了么? [LINE]1,#dddddd[/LINE]
版主对此帖的认可:『给点辛苦费吧 - -』,积分『+150』。
作者:
星语心の梦
时间:
2008-7-29 06:00
提示:
作者被禁止或删除 内容自动屏蔽
作者:
暮铃·邪雾
时间:
2008-7-29 06:02
提示:
作者被禁止或删除 内容自动屏蔽
作者:
星语心の梦
时间:
2008-7-29 06:09
提示:
作者被禁止或删除 内容自动屏蔽
作者:
redant
时间:
2008-7-29 06:13
http://rpg.blue/web/htm/news713.htm
或者去主站找8人战斗脚本
更改坐标
game_actor里
def screen_x
修改数值
不会再参看http://rpg.blue/web/htm/news131.htm
血槽 再去找敌人血槽脚本
一般不会冲突
作者:
暮铃·邪雾
时间:
2008-7-29 06:14
提示:
作者被禁止或删除 内容自动屏蔽
作者:
星语心の梦
时间:
2008-7-29 06:17
提示:
作者被禁止或删除 内容自动屏蔽
作者:
殲滅天使·玲
时间:
2008-7-29 06:45
试了一下 我没办法把菜单弄成有8个人只显示4个人..
但是用召喚獸那个脚本 应该可以弄出效果
能力有限..看来我也帮不上忙了 呵呵 - -
作者:
星语心の梦
时间:
2008-7-29 19:54
提示:
作者被禁止或删除 内容自动屏蔽
作者:
dbshy
时间:
2008-7-30 00:42
以下引用
星语心の梦于2008-7-29 11:54:24
的发言:
菜单中保持原来的4个就可以
该Window_BattleStatus,只让显示四人
作者:
星语心の梦
时间:
2008-7-30 05:03
提示:
作者被禁止或删除 内容自动屏蔽
欢迎光临 Project1 (https://rpg.blue/)
Powered by Discuz! X3.1