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

Project1

 找回密码
 注册会员
搜索
楼主: Sion
打印 上一主题 下一主题

[RMVA发布] VA鼠标脚本 6/9 更新 v2.32 by Sion

  [复制链接]

Lv1.梦旅人

梦石
0
星屑
100
在线时间
162 小时
注册时间
2013-7-31
帖子
70
91
发表于 2013-9-21 15:15:58 | 只看该作者
有xp的吗?

点评

移植的话要累死,用VA吧,都一样。  发表于 2013-10-2 23:39
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
55
在线时间
144 小时
注册时间
2013-1-11
帖子
101
92
发表于 2013-10-6 12:32:08 | 只看该作者
试试更新的,bug我会再补,前一阵太忙了


哦哦!马上去试新版本,楼主辛苦了!
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
65
在线时间
32 小时
注册时间
2012-12-4
帖子
8
93
发表于 2013-10-23 13:46:52 | 只看该作者
好久没回论坛 ,都更新了!
回复 支持 反对

使用道具 举报

Lv2.观梦者

梦石
0
星屑
271
在线时间
2088 小时
注册时间
2011-7-28
帖子
1145
94
发表于 2013-10-25 19:16:35 | 只看该作者

v2.1的BUG,不知道怎么回事

之前v2.0a的BUG,好像是我把地图换成横向循环后出现的(没什么关系(?)

点评

你重新下附件吧。第二个错误是怎么出的?试了一下循环的没问题  发表于 2013-10-25 20:59
[color=Red][b]我没有签名[/b][/color]
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
28 小时
注册时间
2011-7-26
帖子
6
95
发表于 2013-10-28 18:30:25 | 只看该作者
楼主辛苦~~
有个小问题,就是在加入 八方移动补丁 和 八方行走图 的脚本后,用鼠标点击可以到达的地方是没有问题,一旦点击一个不可到达的地方就会直接提示

要怎么解决呢~~非常感谢楼主

点评

八方向移动更新了。  发表于 2013-10-28 18:59
踏歌长行 梦想永在
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
28 小时
注册时间
2011-7-26
帖子
6
96
发表于 2013-10-28 18:57:39 | 只看该作者
TageDimo 发表于 2013-10-28 18:30
楼主辛苦~~
有个小问题,就是在加入 八方移动补丁 和 八方行走图 的脚本后,用鼠标点击可以到达的地方是没 ...

忘了说,其他脚本都没有加就会出现这个情况
我是ACE
踏歌长行 梦想永在
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
66 小时
注册时间
2013-9-4
帖子
94
97
发表于 2013-11-10 08:08:11 | 只看该作者
普通的自然实用,我顶。可是大概XAS又不能用吧......
本人以后只点评!不回复!更不发主题!
(每次发资源都被扣分,还扣那么多!)
回复 支持 反对

使用道具 举报

Lv3.寻梦者 (版主)

八宝粥的基叔

梦石
0
星屑
4504
在线时间
5228 小时
注册时间
2009-4-29
帖子
14318

贵宾

98
发表于 2013-11-10 09:50:33 | 只看该作者
这个庞大而实用的工程,按标准评分:
[200]一般而言, 具有发布价值 的作品至少具有 200 exp 奖励。这里的发布价值是指作品至少具备一定的功能。
[30] 详细的介绍可以增加 20-100 exp 。
[50]可以提供图片的,如果提供具有可以体现作品功能的图片可以增加 15-80 exp 。
[200]可以提供工程的,如果提供具有可以体现作品功能的工程可以增加 30-250 exp 。
[100]具备多个版本的兼容的可以增加 80-120 exp 。
[40]具备一定的与其他脚本的兼容能力的可以增加 10-50 exp 。
[100]具备新颖、让人耳目一新的题材的可以增加 50-300 exp 。
[0]详细的注释,简洁的语法,方便让其他会员学习的可以增加 80-200 exp 。
[1500]规模比较巨大、完整的系统工程可以增加 500-3000 exp 。
[0]为作品提供自己制作的素材的可以增加 200-500 exp 。

总计:2220 = 1好人卡 + 1970糖

评分

参与人数 1星屑 +160 收起 理由
Sion + 160 哦喝喝喝.....恭喜荣升超版

查看全部评分

《逝去的回忆3:四叶草之梦》真情发布,欢迎点击图片下载试玩喵。

《逝去的回忆3》的讨论群:
一群:192885514
二群:200460747
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
171 小时
注册时间
2013-8-6
帖子
101
99
发表于 2013-11-12 22:43:03 | 只看该作者
本帖最后由 longshili 于 2013-11-12 22:44 编辑

鼠标直接选择敌人补丁. 测试暂时没有发现问题。
不过,希望加入能够同样直接选择队友的功能,这样技能和物品的使用就方便多啦
另外和以下光标脚本冲突,希望能同时使用,或者直接加入光标功能就完美啦
  1. #==============================================================================
  2. # +++ MOG - Battle Cursor (1.0) +++
  3. #==============================================================================
  4. # By Moghunter
  5. # http://www.atelier-rgss.com/
  6. #==============================================================================
  7. # Sistema de cursor animado de batalha nos sprites dos battlers.
  8. #==============================================================================
  9. # Arquivo necessário. (Graphics/System)
  10. #
  11. # Battle_Cursor.png
  12. #
  13. #==============================================================================

  14. #==============================================================================
  15. # ■ CURSOR SETTING
  16. #==============================================================================
  17. module MOG_BATTLE_CURSOR
  18.   #Definição da posição do cursor em relação ao alvo.
  19.   CURSOR_POSITION = [-45, 8]
  20.   #Definição da posição do nome do alvo.
  21.   CURSOR_NAME_POSITION = [-10, 35]
  22.   #Ativar efeito deslizar.
  23.   CURSOR_SLIDE_EFFECT = true
  24.   #Ativar animação de levitação.
  25.   CURSOR_FLOAT_EFFECT = true
  26.   #Definição da prioridade do cursor.
  27.   CURSOR_Z = 0
  28.   ACTOR_POSITION = [[435,180],[455,210],[475,240],[495,270]]
  29. end

  30. #==============================================================================
  31. # ■ Game Temp
  32. #==============================================================================
  33. class Game_Temp
  34.   
  35.   attr_accessor :battle_cursor
  36.   
  37.   #--------------------------------------------------------------------------
  38.   # ● Initialize
  39.   #--------------------------------------------------------------------------  
  40.   alias mog_battle_cursor_initialize initialize
  41.   def initialize
  42.       @battle_cursor = [0,0,false,""]
  43.       mog_battle_cursor_initialize
  44.   end  
  45.   
  46. end

  47. #==============================================================================
  48. # ■ Spriteset Battle Cursor
  49. #==============================================================================
  50. class Sprite_Battle_Cursor < Sprite
  51.   include MOG_BATTLE_CURSOR
  52.   
  53.   #--------------------------------------------------------------------------
  54.   # ● Initialize
  55.   #--------------------------------------------------------------------------        
  56.   def initialize(viewport = nil)
  57.       super(viewport)
  58.       $game_temp.battle_cursor = [0,0,false,""]
  59.       self.bitmap = Cache.system("Battle_Cursor")
  60.       self.visible = $game_temp.battle_cursor[2]
  61.       self.z = CURSOR_Z
  62.       self.z = 10 if $mog_rgss3_battle_hud != nil
  63.       @cursor_name = Sprite.new
  64.       @cursor_name.bitmap = Bitmap.new(120,32)
  65.       @cursor_name.z = self.z + 1
  66.       @cursor_name.bitmap.font.size = 16
  67.       @cursor_name_enemy = $game_temp.battle_cursor[3]
  68.       @cursor_name_position = [CURSOR_NAME_POSITION[0] ,CURSOR_NAME_POSITION[1]]
  69.       @cursor_float = [0,0]
  70.       refresh_cursor_name
  71.   end
  72.   
  73.   #--------------------------------------------------------------------------
  74.   # ● Dispose Sprite
  75.   #--------------------------------------------------------------------------         
  76.   def dispose
  77.       super
  78.       dispose_sprite_cursor
  79.   end
  80.   
  81.   #--------------------------------------------------------------------------
  82.   # ● Dispose Sprite Cursor
  83.   #--------------------------------------------------------------------------            
  84.   def dispose_sprite_cursor
  85.       if @cursor_name != nil
  86.          @cursor_name.bitmap.dispose
  87.          @cursor_name.dispose
  88.       end
  89.       self.bitmap.dispose
  90.   end

  91.   #--------------------------------------------------------------------------
  92.   # ● Refresh Cursor Name
  93.   #--------------------------------------------------------------------------              
  94.   def refresh_cursor_name
  95.       @cursor_name_enemy = $game_temp.battle_cursor[3]
  96.       @cursor_name.bitmap.clear
  97.       @cursor_name.bitmap.draw_text(0,0,120,32,@cursor_name_enemy.to_s,1)
  98.   end

  99.   #--------------------------------------------------------------------------
  100.   # ● Update
  101.   #--------------------------------------------------------------------------            
  102.   def update
  103.       super
  104.       update_sprite_cursor
  105.   end

  106.   #--------------------------------------------------------------------------
  107.   # ● Update Sprite Cursor
  108.   #--------------------------------------------------------------------------              
  109.   def update_sprite_cursor
  110.       update_visible
  111.       update_cursor_float_effect
  112.       execute_move(0,self.x,$game_temp.battle_cursor[0])
  113.       execute_move(1,self.y,$game_temp.battle_cursor[1] + @cursor_float[1])
  114.       update_sprite_name
  115.   end

  116.   #--------------------------------------------------------------------------
  117.   # ● Update Visible
  118.   #--------------------------------------------------------------------------               
  119.   def update_visible
  120.       self.visible = $game_temp.battle_cursor[2]
  121.       if !self.visible
  122.          self.x = -64
  123.          self.y = -64
  124.       end  
  125.   end  
  126.   
  127.   #--------------------------------------------------------------------------
  128.   # ● Update Sprite Name
  129.   #--------------------------------------------------------------------------               
  130.   def update_sprite_name
  131.       return if @cursor_name == nil
  132.       refresh_cursor_name  if @cursor_name_enemy != $game_temp.battle_cursor[3]
  133.       @cursor_name.x = self.x + @cursor_name_position[0]
  134.       @cursor_name.y = self.y + @cursor_name_position[1]
  135.       @cursor_name.opacity = self.opacity
  136.       @cursor_name.visible = self.visible
  137.   end  
  138.   
  139.   #--------------------------------------------------------------------------
  140.   # ● Update Cursor Float Effect
  141.   #--------------------------------------------------------------------------              
  142.   def update_cursor_float_effect
  143.       return if !CURSOR_FLOAT_EFFECT
  144.       @cursor_float[0] += 1
  145.       case @cursor_float[0]
  146.         when 0..20
  147.           @cursor_float[1] += 1
  148.         when 21..40
  149.           @cursor_float[1]  -= 1
  150.         else
  151.           @cursor_float[0] = 0
  152.           @cursor_float[1] = 0
  153.       end        
  154.   end  
  155.   
  156.   #--------------------------------------------------------------------------
  157.   # ● Execute Move
  158.   #--------------------------------------------------------------------------      
  159.   def execute_move(type,cp,np)
  160.       sp = 5 + ((cp - np).abs / 5)
  161.       if cp > np
  162.          cp -= sp
  163.          cp = np if cp < np
  164.       elsif cp < np
  165.          cp += sp
  166.          cp = np if cp > np
  167.       end     
  168.       self.x = cp if type == 0
  169.       self.y = cp if type == 1
  170.   end      
  171.   
  172. end

  173. #==============================================================================
  174. # ■ Spriteset Battle
  175. #==============================================================================
  176. class Spriteset_Battle
  177.   
  178.   #--------------------------------------------------------------------------
  179.   # ● Initialize
  180.   #--------------------------------------------------------------------------      
  181.   alias mog_battle_cursor_initialize initialize
  182.   def initialize
  183.       mog_battle_cursor_initialize
  184.       create_cursor
  185.   end
  186.   
  187.   #--------------------------------------------------------------------------
  188.   # ● Dispose
  189.   #--------------------------------------------------------------------------      
  190.   alias mog_battle_cursor_dispose dispose
  191.   def dispose
  192.       mog_battle_cursor_dispose
  193.       dispose_cursor
  194.   end
  195.   
  196.   #--------------------------------------------------------------------------
  197.   # ● Update
  198.   #--------------------------------------------------------------------------         
  199.   alias mog_battle_cursor_update update
  200.   def update
  201.       mog_battle_cursor_update
  202.       update_battle_cursor
  203.   end  
  204.   
  205.   #--------------------------------------------------------------------------
  206.   # ● Create_Cursor
  207.   #--------------------------------------------------------------------------        
  208.   def create_cursor
  209.       return if @battle_cursor != nil
  210.       @battle_cursor = Sprite_Battle_Cursor.new      
  211.   end
  212.   
  213.   #--------------------------------------------------------------------------
  214.   # ● Dispose Cursor
  215.   #--------------------------------------------------------------------------        
  216.   def dispose_cursor
  217.       return if @battle_cursor == nil
  218.       @battle_cursor.dispose
  219.   end  
  220.   
  221.   #--------------------------------------------------------------------------
  222.   # ● Update Battle Cursor
  223.   #--------------------------------------------------------------------------         
  224.   def update_battle_cursor
  225.       return if @battle_cursor == nil
  226.       @battle_cursor.update      
  227.   end
  228.   
  229. end

  230. #==============================================================================
  231. # ■ Battle Cursor Index
  232. #==============================================================================
  233. module Battle_Cursor_index
  234.   include MOG_BATTLE_CURSOR
  235.   #--------------------------------------------------------------------------
  236.   # ● Check Index Limit
  237.   #--------------------------------------------------------------------------      
  238.   def check_index_limit
  239.       self.index = 0 if self.index >= item_max
  240.       self.index = (item_max - 1) if self.index < 0
  241.   end      
  242.   
  243.   #--------------------------------------------------------------------------
  244.   # ● Set Cursor Position Enemy
  245.   #--------------------------------------------------------------------------   
  246.   def set_cursor_position_enemy
  247.       return if !self.active
  248.       $game_temp.battle_cursor[0] = $game_troop.alive_members[self.index].screen_x + CURSOR_POSITION[0] rescue nil
  249.       $game_temp.battle_cursor[1] = $game_troop.alive_members[self.index].screen_y + CURSOR_POSITION[1] rescue nil
  250.       $game_temp.battle_cursor[3] = $game_troop.alive_members[self.index].name rescue nil
  251.       $game_temp.battle_cursor = [0,0,false,0] if $game_temp.battle_cursor[0] == nil
  252.   end
  253.   
  254.   #--------------------------------------------------------------------------
  255.   # ● Set Cursor Position Actor
  256.   #--------------------------------------------------------------------------   
  257.   def set_cursor_position_actor
  258.       return if !self.active
  259.       $game_temp.battle_cursor[0] = ACTOR_POSITION[self.index][0] + CURSOR_POSITION[0] rescue nil
  260.       $game_temp.battle_cursor[1] = ACTOR_POSITION[self.index][1] + CURSOR_POSITION[1] rescue nil
  261.       $game_temp.battle_cursor[3] = $game_party.members[self.index].name rescue nil
  262.       $game_temp.battle_cursor = [0,0,false,0] if $game_temp.battle_cursor[0] == nil
  263.   end  
  264.   
  265.   #--------------------------------------------------------------------------
  266.   # ● Process Cursor Move
  267.   #--------------------------------------------------------------------------
  268.   def process_cursor_move
  269.       return unless cursor_movable?
  270.       last_index = @index
  271.       cursor_move_index(+1) if Input.repeat?(:DOWN)
  272.       cursor_move_index(-1) if Input.repeat?(:UP)
  273.       cursor_move_index(+1) if Input.repeat?(:RIGHT)
  274.       cursor_move_index(-1) if Input.repeat?(:LEFT)
  275.       if [url=home.php?mod=space&uid=370741]@Index[/url] != last_index
  276.          Sound.play_cursor
  277.       end
  278.   end

  279.   #--------------------------------------------------------------------------
  280.   # ● Process Cursor Move Index
  281.   #--------------------------------------------------------------------------  
  282.   def cursor_move_index(value = 0)
  283.       self.index += value
  284.       check_index_limit
  285.   end

  286.   
  287. end

  288. #==============================================================================
  289. # ■ Window_BattleActor
  290. #==============================================================================
  291. class Window_BattleActor < Window_BattleStatus
  292.   include Battle_Cursor_index
  293.   
  294.   #--------------------------------------------------------------------------
  295.   # ● Update
  296.   #--------------------------------------------------------------------------  
  297.   def update
  298.       super
  299.       set_cursor_position_actor
  300.   end  

  301.   #--------------------------------------------------------------------------
  302.   # ● Show
  303.   #--------------------------------------------------------------------------
  304.   alias mog_battle_cursor_show show
  305.   def show
  306.       if @info_viewport
  307.          set_cursor_position_actor
  308.          $game_temp.battle_cursor[2] = true
  309.       end
  310.       mog_battle_cursor_show
  311.   end

  312.   #--------------------------------------------------------------------------
  313.   # ● Hide
  314.   #--------------------------------------------------------------------------
  315.   alias mog_battle_cursor_hide hide
  316.   def hide
  317.       if @info_viewport
  318.           $game_temp.battle_cursor[2] = false
  319.       end
  320.       mog_battle_cursor_hide
  321.   end  
  322.   
  323. end

  324. #==============================================================================
  325. # ■ Window_BattleEnemy
  326. #==============================================================================
  327. class Window_BattleEnemy < Window_Selectable
  328.   include Battle_Cursor_index
  329.   
  330.   #--------------------------------------------------------------------------
  331.   # ● Update
  332.   #--------------------------------------------------------------------------  
  333.   def update
  334.       super
  335.       set_cursor_position_enemy
  336.   end

  337.   #--------------------------------------------------------------------------
  338.   # ● Show
  339.   #--------------------------------------------------------------------------
  340.   alias mog_battle_cursor_show show
  341.   def show
  342.       if @info_viewport
  343.          set_cursor_position_enemy
  344.          $game_temp.battle_cursor[2] = true
  345.       end
  346.       mog_battle_cursor_show
  347.   end

  348.   #--------------------------------------------------------------------------
  349.   # ● Hide
  350.   #--------------------------------------------------------------------------
  351.   alias mog_battle_cursor_hide hide
  352.   def hide
  353.       if @info_viewport
  354.           $game_temp.battle_cursor[2] = false
  355.       end
  356.       mog_battle_cursor_hide
  357.   end  
  358.   
  359. end

  360. $mog_rgss3_battle_cursor = true
复制代码

Battle_Cursor.png (5.86 KB, 下载次数: 22)

Battle_Cursor.png

Battle_Cursor.png

点评

本来就有鼠标去选,还要这个 Cursor 干嘛?  发表于 2013-11-12 23:37
回复 支持 反对

使用道具 举报

Lv1.梦旅人

梦石
0
星屑
50
在线时间
171 小时
注册时间
2013-8-6
帖子
101
100
发表于 2013-11-13 21:37:01 | 只看该作者
longshili 发表于 2013-11-12 22:43
鼠标直接选择敌人补丁. 测试暂时没有发现问题。
不过,希望加入能够同样直接选择队友的功能,这样技能和物 ...

光标提示,而且显示名字等级等信息,很有用的吧。。

点评

我试了没问题,默认的敌人哪里有等级? 有问题发短消息给我,这个我凑巧看到了。  发表于 2013-11-16 23:17
就是名字的前面显示等级,这样的话战斗信息很有用的吧。。另外,脚本跟新了也没显示名字,但是也没报错,不知道为什么  发表于 2013-11-16 20:09
主楼更新脚本,现在可以直接显示名字;等级是在哪里? 还有,你不要再用这个蛋疼的脚本了。  发表于 2013-11-14 23:55
回复 支持 反对

使用道具 举报

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

本版积分规则

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

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

GMT+8, 2024-4-30 03:23

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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