设为首页收藏本站|繁體中文

Project1

 找回密码
 注册会员
搜索
查看: 3249|回复: 32
打印 上一主题 下一主题

求一个还算简单的脚本

 关闭 [复制链接]
头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-6-30
帖子
159
跳转到指定楼层
1
发表于 2008-7-29 03:44:30 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
提示: 作者被禁止或删除 内容自动屏蔽

Lv1.梦旅人

天壤

梦石
0
星屑
50
在线时间
1 小时
注册时间
2008-7-18
帖子
1435
2
发表于 2008-7-29 03:47:47 | 只看该作者
http://rpg.blue/web/htm/news713.htm
這是你需要的東西么~?
时隔多年。我还是觉得66才是我的家。
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-6-30
帖子
159
3
 楼主| 发表于 2008-7-29 03:52:05 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

天壤

梦石
0
星屑
50
在线时间
1 小时
注册时间
2008-7-18
帖子
1435
4
发表于 2008-7-29 03:59:01 | 只看该作者
http://rpg.blue/upload_program/files/八人制战斗_97703892.rar


我改了一下腳本~~~你下來看看合意不?
时隔多年。我还是觉得66才是我的家。
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-6-30
帖子
159
5
 楼主| 发表于 2008-7-29 04:06:15 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-6-30
帖子
159
6
 楼主| 发表于 2008-7-29 04:07:55 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-6-30
帖子
159
7
 楼主| 发表于 2008-7-29 04:08:47 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

Lv1.梦旅人

天壤

梦石
0
星屑
50
在线时间
1 小时
注册时间
2008-7-18
帖子
1435
8
发表于 2008-7-29 04:10:50 | 只看该作者
那個血槽可以在MAIN前加上
  1. #==============================================================================
  2. # ■ Window_Help
  3. #------------------------------------------------------------------------------
  4. # 重新定义的内容,可以显示敌人的HP\MP百分比
  5. # 你可以改脚本的开头部分定义生命、精神描述词。只和敌人描述有关,可随意修改
  6. #==============================================================================

  7. class Window_Help < Window_Base
  8.   def set_enemy(actor)  
  9.     #--------------------------------------------------------------------
  10.     # 在这里修改描述文字,比如@生命描述词="敌人生命"
  11.     #--------------------------------------------------------------------
  12.    
  13.     @生命描述词 = $data_system.words.hp
  14.     @精神描述词 = $data_system.words.sp
  15.    
  16.     #--------------------------------------------------------------------
  17.     #--------------------------------------------------------------------
  18.     self.contents.clear
  19.     draw_actor_name(actor, 4, 0)
  20.     draw_actor_state(actor, 140, 0)
  21.     carol3_draw_hp_bar(actor, 284, 12)
  22.     carol3_draw_sp_bar(actor, 460, 12)
  23.     @text = nil
  24.     self.visible = true
  25.   end
  26.   def carol3_draw_hp_bar(actor, x, y, width = 128, height = 14) #宽度可调
  27.     w = width * actor.hp / [actor.maxhp,1].max
  28.     hp_color_1 = Color.new(255, 0, 0, 192)
  29.     hp_color_2 = Color.new(255, 255, 0, 192)
  30.     self.contents.fill_rect(x+8, y+4, width, (height/4).floor, Color.new(0, 0, 0, 128))
  31.     draw_line(x, y, x + w, y, hp_color_1, (height/4).floor, hp_color_2)
  32.     x -= 1
  33.     y += (height/4).floor
  34.     self.contents.fill_rect(x+8, y+4, width, (height/4).ceil , Color.new(0, 0, 0, 128))
  35.     draw_line(x, y, x + w, y, hp_color_1, (height/4).ceil , hp_color_2)
  36.     x -= 1
  37.     y += (height/4).ceil
  38.     self.contents.fill_rect(x+8, y+4, width, (height/4).ceil , Color.new(0, 0, 0, 128))
  39.     draw_line(x, y, x + w, y, hp_color_1, (height/4).ceil , hp_color_2)
  40.     x -= 1
  41.     y += (height/4).ceil
  42.     self.contents.fill_rect(x+8, y+4, width, (height/4).floor, Color.new(0, 0, 0, 128))
  43.     draw_line(x, y, x + w, y, hp_color_1, (height/4).floor, hp_color_2)
  44.     self.contents.font.color = Color.new(0,0,0,255)
  45.     self.contents.draw_text(x+2,-3,128,32,@生命描述词,1)
  46.     self.contents.font.color = Color.new(255,255,255,255)
  47.     self.contents.draw_text(x,-4,128,32,@生命描述词,1)
  48.   end
  49.   def carol3_draw_sp_bar(actor, x, y, width = 128, height=14)
  50.     w = width * actor.sp / [actor.maxsp,1].max
  51.     hp_color_1 = Color.new( 0, 0, 255, 192)
  52.     hp_color_2 = Color.new( 0, 255, 255, 192)
  53.     self.contents.fill_rect(x+8, y+4, width, (height/4).floor, Color.new(0, 0, 0, 128))
  54.     draw_line(x, y, x + w, y, hp_color_1, (height/4).floor, hp_color_2)
  55.     x -= 1
  56.     y += (height/4).floor
  57.     self.contents.fill_rect(x+8, y+4, width, (height/4).ceil , Color.new(0, 0, 0, 128))
  58.     draw_line(x, y, x + w, y, hp_color_1, (height/4).ceil , hp_color_2)
  59.     x -= 1
  60.     y += (height/4).ceil
  61.     self.contents.fill_rect(x+8, y+4, width, (height/4).ceil , Color.new(0, 0, 0, 128))
  62.     draw_line(x, y, x + w, y, hp_color_1, (height/4).ceil , hp_color_2)
  63.     x -= 1
  64.     y += (height/4).ceil
  65.     self.contents.fill_rect(x+8, y+4, width, (height/4).floor, Color.new(0, 0, 0, 128))
  66.     draw_line(x, y, x + w, y, hp_color_1, (height/4).floor, hp_color_2)
  67.     self.contents.font.color = Color.new(0,0,0,255)
  68.     self.contents.draw_text(x+2,-3,128,32,@精神描述词,1)
  69.     self.contents.font.color = Color.new(255,255,255,255)
  70.     self.contents.draw_text(x,-4,128,32,@精神描述词,1)
  71.   end
  72.   #--------------------------------------------------------------------------
  73.   # ● ライン描画 by 桜雅 在土
  74.   #--------------------------------------------------------------------------
  75.   def draw_line(start_x, start_y, end_x, end_y, start_color, width = 1, end_color = start_color)
  76.     # 描写距離の計算。大きめに直角時の長さ。
  77.     distance = (start_x - end_x).abs + (start_y - end_y).abs
  78.     # 描写開始
  79.     if end_color == start_color
  80.       for i in 1..distance
  81.         x = (start_x + 1.0 * (end_x - start_x) * i / distance).to_i
  82.         y = (start_y + 1.0 * (end_y - start_y) * i / distance).to_i
  83.         if width == 1
  84.           self.contents.set_pixel(x, y, start_color)
  85.         else
  86.           self.contents.fill_rect(x, y, width, width, start_color)
  87.         end
  88.       end
  89.     else
  90.       for i in 1..distance
  91.         x = (start_x + 1.0 * (end_x - start_x) * i / distance).to_i
  92.         y = (start_y + 1.0 * (end_y - start_y) * i / distance).to_i
  93.         r = start_color.red * (distance-i)/distance + end_color.red * i/distance
  94.         g = start_color.green * (distance-i)/distance + end_color.green * i/distance
  95.         b = start_color.blue * (distance-i)/distance + end_color.blue * i/distance
  96.         a = start_color.alpha * (distance-i)/distance + end_color.alpha * i/distance
  97.         if width == 1
  98.           self.contents.set_pixel(x, y, Color.new(r, g, b, a))
  99.         else
  100.           self.contents.fill_rect(x, y, width, width, Color.new(r, g, b, a))
  101.         end
  102.       end
  103.     end
  104.   end
  105. end

复制代码



不知道會不會有衝突~你試試看~~~應該沒問題
时隔多年。我还是觉得66才是我的家。
回复 支持 反对

使用道具 举报

Lv1.梦旅人

天壤

梦石
0
星屑
50
在线时间
1 小时
注册时间
2008-7-18
帖子
1435
9
发表于 2008-7-29 04:12:09 | 只看该作者
至於那個菜單~~你完全不用操心啦~
直接加上去就OK了~
时隔多年。我还是觉得66才是我的家。
回复 支持 反对

使用道具 举报

头像被屏蔽

Lv1.梦旅人 (禁止发言)

梦石
0
星屑
50
在线时间
0 小时
注册时间
2008-6-30
帖子
159
10
 楼主| 发表于 2008-7-29 04:22:01 | 只看该作者
提示: 作者被禁止或删除 内容自动屏蔽
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册会员

本版积分规则

拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

站长信箱:[email protected]|手机版|小黑屋|无图版|Project1游戏制作

GMT+8, 2025-8-10 05:24

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表