| 赞 | 5 |
| VIP | |
| 好人卡 | |
| 积分 | 73 |
| 经验 | |
| 最后登录 | 2026-11-1 |
| 在线时间 | 1244 小时 |
- 梦石
- 0
- 星屑
- 7306
- 在线时间
- 1244 小时
- 注册时间
- 2015-8-15
- 回帖
- 473
|
加入我们,或者,欢迎回来。
您需要 登录 才可以下载或查看,没有账号?注册会员
×
本帖最后由 金芒芒 于 2022-11-30 14:35 编辑
ARPG 进入战斗地图cp值=0 快捷键1-7已经设好,快捷键是安放技能的,变量1-7号=快捷键1-7。
‘’如果‘’1号变量值等于角色2号. 角色2号=9号变量.9号变量的常量等于6000MS.
地图上价格CP条,那么1号快捷键满CP就=6000MS,等快捷键1号满CP的时候强行2号角色使用技能。
- module SXL_ICON
-
- ICONS = {
- 1=>"$R_Key_1",
- 2=>"$R_Key_2",
- 3=>"$R_Key_3",
- 4=>"$R_Key_4",
- 5=>"$R_Key_5",
- 6=>"$R_Key_6",
- 7=>"$R_Key_7",
- }
-
- SKIN = "123"
- X = 32
- Y = 16
- end
- class KZGJ
-
- def initialize
-
- @base = Sprite.new
- @base.bitmap = RPG::Cache.picture(SXL_ICON::SKIN)
- @base.x = SXL_ICON::X
- @base.y = SXL_ICON::Y
- @base.z = SXL_ICON::Y+100
- @width = @base.bitmap.width
- @height = @base.bitmap.height
-
- refresh
-
- end
-
-
- def refresh
- sort
- n = 0
- @icon_set = []
- for battler in @battlers_array
- p battler.id
- iconname = SXL_ICON::ICONS[battler.id]
- sprite = Sprite.new
- sprite.bitmap = RPG::Cache.icon(iconname)
- sprite.x = SXL_ICON::X + n * 25 + 25
- sprite.y = SXL_ICON::Y
- sprite.z = @base.z + 100
- @icon_set.push([sprite,battler.id])
- n += 1
- end
- end
-
- def reset
- @icon_set.each { |set| set[0].dispose}
- refresh
- end
-
-
- def cr(actor_id, position)
- for set in @icon_set
- if set[1] == actor_id then
- set[0].x = SXL_ICON::X + position * 25 + 25
- set[0].y = SXL_ICON::Y - 25
- 7.times { Graphics.update }
- 7.times { set[0].y += 7; Graphics.update}
- break
- end
- end
- end
-
- def move_up(array)
- for element in array
- for i in 1..7
- for set in @icon_set
- if $game_map.events[element].at < $game_map.events[set[1]].at and set[0].visible == true then
- set[0].x -= 7
- end
- end
- Graphics.update
- end
- end
- end
-
- def move_down(index)
- for i in 1..7
- for set in @icon_set
- if $game_map.events[index].at < $game_map.events[set[1]].at and set[0].visible == true then
- set[0].x += 7
- end
- end
- Graphics.update
- end
- end
-
- def forward
- for i in 1..7
- for set in @icon_set
- if set[0].visible == true then
- set[0].x -= 7
- end
- end
- Graphics.update
- end
- end
-
- def conceal(array)
- for id in array
- for set in @icon_set
- if id == set[1] then
- set[0].visible = false
- end
- end
- end
- end
-
- def sort
- @battlers_array = []
- for i in $game_system.tactics_actors.keys
- actor = $game_map.events[i]
- if !$game_system.tactics_actors[i].dead? then
- @battlers_array.push(actor)
- end
- end
- for i in $game_system.tactics_enemies.keys
- enemy = $game_map.events[i]
- if !$game_system.tactics_enemies[i].dead? then
- @battlers_array.push(enemy)
- end
- end
-
- @battlers_array.sort! {|a,b| a.at - b.at }
- end
-
- def dispose
- @base.dispose
- @icon_set.each { |set| set[0].dispose}
- end
-
-
- end
复制代码
|
|