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

Project1

 找回密码
 注册会员
搜索

一个正在开发的rmxp的东西

查看数: 1493 | 评论数: 6 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2012-8-22 12:56

正文摘要:

先抖搂一下代码: 再说说闲聊的内容: Q:作者在搞什么{:2_272:} A:看起来像是桌游{:2_253:} Q:作者开完了吗{:2_269:} A:没有{:2_251:} Q:那放代码来做什么{:2_257:} A:来胡扯{:2_254:} Q:那楼下干嘛{:2 ...

回复

bdhptx 发表于 2012-8-22 15:31:53
希望是DND……本本不行玩不了欧美大作的飘过
fux4 发表于 2012-8-22 15:02:55
my.0lantulantu0 发表于 2012-8-22 14:31
无语。。。其实我的更像是NPC战


素材未到位勿吐槽。
忧雪の伤 发表于 2012-8-22 14:18:57
UI> 我同样在做卡牌游戏~
fux4 发表于 2012-8-22 13:07:28
我也来一发
RUBY 代码复制
  1. class Orzfly < Actor
  2.  
  3.   def set_tec
  4.     @id = 6
  5.     @name = "Orzfly"
  6.     @skill = []
  7.     @equip = {}
  8.     @atk_pic = nil
  9.     @atk_cot = 4
  10.     @item_pic = nil
  11.     @item_cot = 4
  12.     @skill_pic = nil
  13.     @skill_cot = 4
  14.   end
  15.  
  16.   def set_ele
  17.     @maxhp = 300000
  18.     @maxsp = 100
  19.     @maxap = 1
  20.     @atk = 0
  21.     @atk_area = [ [[0] ] ,true]
  22.     @atk_dis_min = 1
  23.     @atk_dis_max = 1
  24.     @def = -100
  25.     @int = 5
  26.     @mdef = -100
  27.     @hp_rec = 3
  28.     @sp_rec = 0
  29.     @per_step_cost_ap = 1
  30.     @atk_cost_ap = 100
  31.     @item_cost_ap = 100
  32.     @hatred_base = 50000
  33.     @miss_rate = 0
  34.   end
  35.  
  36.   def set_ai
  37.     @ai = OrzAI.new(self)
  38.   end
  39.  
  40.   def set_extra
  41.     @atk_buff = []
  42.     @maxhp_add = 0
  43.     @maxsp_add = 0
  44.     @maxap_add = 0
  45.     @atk_add = 0
  46.     @def_add = 0
  47.     @int_add = 0
  48.     @mdef_add = 0
  49.     @hp_rec_add = 0
  50.     @sp_rec_add = 0
  51.     @per_step_cost_ap_add = 0
  52.     @atk_cost_ap_add = 0
  53.     @item_cost_ap_add = 0
  54.     @bingo_rate = 0
  55.     @bingo_damage = 0
  56.     @damage_reduce_rate = 0
  57.     @damage_reduce = 0
  58.     @cost_reduce_rate = 0
  59.     @cost_reduce = 0
  60.     @hp_absorb_rate = 0
  61.     @hp_absorb = 0
  62.     @sp_absorb_rate = 0
  63.     @sp_absorb = 0
  64.     @invincible = false
  65.     @ignore_physical = false
  66.     @ignore_magic = false
  67.     @invisible = false
  68.     @deinvisible = false
  69.     @ignore_dmg_rate = 0
  70.     @dmg_rebound = 0
  71.     @dmg_rebound_rate = 10
  72.   end
  73.  
  74. end

buff
RUBY 代码复制
  1. class Weak < Buff
  2.  
  3.   attr_accessor :temp_damage
  4.  
  5.   def set_ele(user)
  6.     @id = 3
  7.     @user = user
  8.     @name = "撕裂"
  9.     @icon = "weak"
  10.     @animation = []
  11.     @keep_turn = 2
  12.     @keep_step = 0
  13.     @use_effect = "new_buff.temp_damage=self.damage(self.hp/4);
  14.                    SceneManager.scene.spriteset.show_text(new_buff.temp_damage[1].to_s,self.event,Fuc::AP_ADD_COLOR) if new_buff.temp_damage[0]"
  15.     @per_turn_start_effect = ""
  16.     @per_step_effect = "a=@cur_actor.mag_damage(@cur_actor.get_ap_for_step*10);
  17.                             @splink.show_text(a[1].to_s,@cur_actor.event,AP_ADD_COLOR) if a[0]"
  18.     @per_act_effect = ""
  19.     @per_turn_end_effect = ""
  20.     @end_effect = "a=self.god_damage(-buff.temp_damage[1]);
  21.                    SceneManager.scene.spriteset.show_text(a[1].abs.to_s,self.event,Fuc::AP_COST_COLOR) if a[0]"
  22.     @atk_effect = ""
  23.     @b_damage_effect = ""
  24.     @a_damage_effect = ""
  25.   end
  26.  
  27.   def set_extra
  28.     @end_req = "@turn-buff.lived_turn>=buff.keep_turn"
  29.     @descr = "被附加时损失25%的当前生命.\n每进行一次动作损失行走所需行动力十倍的生命值.\nbuff效果消失时,回复开始时损失的生命.\n开始和结束的回复与伤害效果无视魔法免疫.\n持续2回合"
  30.     @temp_damage = 0
  31.   end
  32.  
  33. end

skill
RUBY 代码复制
  1. class Refraction < Skill
  2.  
  3.   def set_ui
  4.     @icon = "f01"
  5.     @user_animation = 0
  6.     @target_partner_animation = 0
  7.     @target_enemy_animation = 0
  8.     @target_p_dead_animation = 0
  9.     @target_e_dead_animation = 0
  10.   end
  11.  
  12.   def set_ele
  13.     @id = 16
  14.     @name = "奥术分散"
  15.     @init_skill = false
  16.     @uninit_buff = [RefractionBuff]
  17.     @use_req = "true"
  18.     @use_dis_min = 0
  19.     @use_dis_max = 0
  20.     @hotkey = nil
  21.     @hurt_enemy = true
  22.     @hurt_partner = true
  23.     @hurt_p_dead = false
  24.     @hurt_e_dead = false
  25.     @hurt_area = [ [[0]] ,true]
  26.     @hurt_maxnum = 0
  27.     @sp_cost = 0
  28.     @hp_cost = 0
  29.     @ap_cost = 0
  30.     @hp_damage = 0
  31.     @sp_damage = 0
  32.     @ap_damage = 0
  33.     @buff = []
  34.     @debuff = []
  35.     @descr = "自身强大的念力使敌人的进攻\n无法完全命中自己.\n每次自身受到任意伤害时.\n减少15%的伤害.\n并将这部分伤害转给周围的单位.\n不分敌我.\n并且受到伤害如果大于最大生命\n的一半,超过得部分将被阻止.\n无视魔法免疫.\n作用范围:周身4格"
  36.   end
  37.  
  38.   def set_extra
  39.     @spec_effect = ""
  40.     @sp_cost_rate = 0
  41.     @hp_cost_rate = 0
  42.     @ap_cost_rate = 0
  43.     @level = 0
  44.     @hp_damage_add = "skill.level*100"
  45.     @sp_damage_add = "skill.level*50"
  46.     @ap_damage_add = "0"
  47.     @ignore_mag_det = true
  48.   end
  49.  
  50. end

item
RUBY 代码复制
  1. class YellowBook < Item
  2.  
  3.   def set_ui
  4.     @icon = "book"
  5.     @user_animation = 0
  6.     @target_partner_animation = 0
  7.     @target_enemy_animation = 0
  8.     @target_p_dead_animation = 0
  9.     @target_e_dead_animation = 0
  10.   end
  11.  
  12.   def set_ele
  13.     @id = 2
  14.     @use_cost_num = 0
  15.     @can_use = true
  16.     @name = "黄书"
  17.     @use_req = "true"
  18.     @use_dis_min = 1
  19.     @use_dis_max = 5
  20.     @hurt_enemy = false
  21.     @hurt_partner = false
  22.     @hurt_p_dead = false
  23.     @hurt_e_dead = false
  24.     @hurt_nothing = true
  25.     @hurt_cant_move = false
  26.     @hurt_area = [ [[0]] ,true]
  27.     @hurt_maxnum = 0
  28.     @sp_cost = 0
  29.     @hp_cost = 10
  30.     @hp_damage = 0
  31.     @sp_damage = 0
  32.     @ap_damage = 0
  33.     @buff = []
  34.     @debuff = []
  35.     @descr = "可以让你自由出入战场.\n瞬间移动到5格内任意位置.\n不消耗道具.\n每次使用消耗10HP.\n使用范围:1-5"
  36.   end
  37.  
  38.   def set_extra
  39.     @spec_effect = "@cur_actor.event.x=@cur_actor.event.real_x=para[1][0];
  40.                     @cur_actor.event.y=@cur_actor.event.real_y=para[1][1];
  41.                     set_view_pos(@cur_actor.x,@cur_actor.y)"
  42.     @sp_cost_rate = 0
  43.     @hp_cost_rate = 0
  44.     @ap_cost_rate = 0
  45.     @level = 0
  46.     @hp_damage_add = "0"
  47.     @sp_damage_add = "0"
  48.     @ap_damage_add = "0"
  49.     @ignore_mag_det = false
  50.   end
  51.  
  52. end

点评

orzfly……  发表于 2012-8-22 15:05
↓这是我写的- -b Orz是负责程序,我是脚本  发表于 2012-8-22 13:45
这脚本是从orzFly那里搞到的对不对……  发表于 2012-8-22 13:34
不能连帖  发表于 2012-8-22 13:25
有类似效果图的没?发来看看(裁图自哪个游戏都无所谓)  发表于 2012-8-22 13:17
拿上你的纸笔,建造一个属于你的梦想世界,加入吧。
 注册会员
找回密码

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

GMT+8, 2025-7-19 22:13

Powered by Discuz! X3.1

© 2001-2013 Comsenz Inc.

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