コード例 #1
0
    //damage_type-HP回復とか MPダメージとか another_type-ランクダウン文字とかの呼び出し
    public void damage_draw_effect_set(int damage_num, int damage_type, int week_1__resist_2, int another_type, int draw_num_type, int attack_attribute, int free2)
    {
        float x7 = x1 - 4;
        float y7 = y1 - call_h() * 0 - 12 + call_h() * 1 / 2;//y - 120 * 2 / 3;

        {
            int n1 = 24;//24;

            //    m1.msbox("Effect!");

            int effect_type1 = s1.effect_group.DAMAGE_NUM1;
            if (week_1__resist_2 == 1)
            {
                effect_type1 = s1.effect_group.DAMAGE_NUM1_LARGE;
            }
            if (week_1__resist_2 == 2)
            {
                effect_type1 = s1.effect_group.DAMAGE_NUM1_SMALL;
            }

            s1.effect_group.create(x7 + 4, y7 + value_move.call_y(), effect_type1, attack_attribute, damage_num, 0, 120, 0);

            if (week_1__resist_2 == 0)
            {
                value_move.value_count_draw_y_add(-(16 + 10));
            }
            if (week_1__resist_2 == 1)
            {
                value_move.value_count_draw_y_add(-(24 + 10));
            }
            if (week_1__resist_2 == 2)
            {
                value_move.value_count_draw_y_add(-(12 + 10));
            }

            shake_move.shake_set(1, 1);
        }

        /*
         * //ダメージの場合
         * if (another_type == 0)
         * {
         *  //week_1__resist_2
         *  //attack_attribute
         *
         *  //   week_1__resist_2 = 2;
         *
         *
         *  int tr = -1;
         *
         *  //     draw_num_type = 0;
         *
         *  if (week_1__resist_2 == 0)
         *  {
         *      tr = s.effect_group.create(x7, y7 + damage_count_draw_y, s.effect_group.DAMAGE_NUM, attack_attribute, damage_num, 0, 0);
         *      s.effect_group.effect[tr].type4 = draw_num_type;
         *
         *      damage_count_draw_y -= 16 + 10;
         *  }
         *
         *  if (week_1__resist_2 == 1)
         *  {
         *      tr = s.effect_group.create(x7, y7 + damage_count_draw_y, s.effect_group.DAMAGE_NUM_LARGE, attack_attribute, damage_num, 0, 0);
         *      s.effect_group.effect[tr].type4 = draw_num_type;
         *
         *      damage_count_draw_y -= 24 + 10;
         *  }
         *
         *  if (week_1__resist_2 == 2)
         *  {
         *      tr = s.effect_group.create(x7, y7 + damage_count_draw_y, s.effect_group.DAMAGE_NUM_MINI, attack_attribute, damage_num, 0, 0);
         *      s.effect_group.effect[tr].type4 = draw_num_type;
         *
         *      damage_count_draw_y -= 12 + 10;
         *  }
         *
         *
         *  //    m.msbox(""+tr + "," + s.efg.ef[tr].type4);
         * }
         * else
         * {
         *  //    //それ以外の場合
         *  //    s.efg.create(x7 + 4, y7 - n1 * damage_count, s.efg.DAMAGE_STR, 0, damage_num, 0, 0);
         * }
         *
         * //    s.efg.create(300, 300, s.efg.DAMAGE_NUM, 0, 120, 0, 0);
         */
    }//damage_draw_effect_set
コード例 #2
0
    //damage_type-HP回復とか MPダメージとか                未使用 another_type-ランクダウン文字とかの呼び出し
    public void damage_draw_effect_set(int damage_num, int week_1__resist_2, int hp0_or_mp1, int attack_attribute, int shake_flag)
    {
        float x7 = call_dx(1) + 4 + 270 / 2;
        float y7 = call_dy(1) - 12 - 4;

        int y70 = (int)value_move1.call_y();

        if (hp0_or_mp1 == 1)
        {
            x7 = call_dx(2) + 4 + 270 / 2; y70 = (int)value_move2.call_y();
        }


        {
            //    m1.msbox("Effect!");

            int effect_type1 = s1.effect_group.DAMAGE_NUM1;
            if (week_1__resist_2 == 1)
            {
                effect_type1 = s1.effect_group.DAMAGE_NUM1_LARGE;
            }
            if (week_1__resist_2 == 2)
            {
                effect_type1 = s1.effect_group.DAMAGE_NUM1_SMALL;
            }

            s1.effect_group.create(x7 + 4, y7 + y70, effect_type1, attack_attribute, m1.abs(damage_num), 0, 120, 0);

            int n1 = 16 + 10, n2 = 24 + 10, n3 = 12 + 10;

            if (hp0_or_mp1 == 0)
            {
                if (week_1__resist_2 == 0)
                {
                    value_move1.value_count_draw_y_add(-n1);
                }
                if (week_1__resist_2 == 1)
                {
                    value_move1.value_count_draw_y_add(-n2);
                }
                if (week_1__resist_2 == 2)
                {
                    value_move1.value_count_draw_y_add(-n3);
                }
            }
            if (hp0_or_mp1 == 1)
            {
                if (week_1__resist_2 == 0)
                {
                    value_move2.value_count_draw_y_add(-n1);
                }
                if (week_1__resist_2 == 1)
                {
                    value_move2.value_count_draw_y_add(-n2);
                }
                if (week_1__resist_2 == 2)
                {
                    value_move2.value_count_draw_y_add(-n3);
                }
            }

            if (damage_num >= 1 && shake_flag != 0)
            {
                if (hp0_or_mp1 == 0)
                {
                    shake_move1.shake_set(1, 1);
                }
                if (hp0_or_mp1 == 1)
                {
                    shake_move2.shake_set(1, 1);
                }
            }
        }
    }//damage_draw_effect_set