RMRK is retiring.
Registration is disabled. The site will remain online, but eventually become a read-only archive. More information.

RMRK.net has nothing to do with Blockchains, Cryptocurrency or NFTs. We have been around since the early 2000s, but there is a new group using the RMRK name that deals with those things. We have nothing to do with them.
NFTs are a scam, and if somebody is trying to persuade you to buy or invest in crypto/blockchain/NFT content, please turn them down and save your money. See this video for more information.
Zombie Status Effect Giving me a Syntax Error?!

0 Members and 1 Guest are viewing this topic.

*
A man chooses,
Rep:
Level 92
a slave obeys
Project of the Month winner for April 2008
Trying to put the Zombie Status, but whe n I try and test it, it continues to say Syntax Error the Game in Game Battler 3, I just wonder what did I do wrong? Can someone point me out?

Here;s the script of Game Battler3:
Quote
#==============================================================================
# ? Game_Battler (???? 3)
#------------------------------------------------------------------------------
# ???????????????????? Game_Actor ???? Game_Enemy ??
# ???????????????????
#==============================================================================

class Game_Battler
  #--------------------------------------------------------------------------
  # ? ??????????
  #     skill_id : ??? ID
  #--------------------------------------------------------------------------
  def skill_can_use?(skill_id)
    # SP ????????????
    if $data_skills[skill_id].sp_cost > self.sp
      return false
    end
    # ????????????
    if dead?
      return false
    end
    # ????????????????????
    if $data_skills[skill_id].atk_f == 0 and self.restriction == 1
      return false
    end
    # ????????
    occasion = $data_skills[skill_id].occasion
    # ??????
    if $game_temp.in_battle
      # [??] ??? [?????] ?????
      return (occasion == 0 or occasion == 1)
    # ?????????
    else
      # [??] ??? [??????] ?????
      return (occasion == 0 or occasion == 2)
    end
  end
  #--------------------------------------------------------------------------
  # ? ?????????
  #     attacker : ??? (????)
  #--------------------------------------------------------------------------
  def attack_effect(attacker)
    # ?????????????
    self.critical = false
    # ??????
    hit_result = (rand(100) < attacker.hit)
    # ?????
    if hit_result == true
      # ?????????
      atk = [attacker.atk - self.pdef / 2, 0].max
      self.damage = atk * (20 + attacker.str) / 20
      # ????
      self.damage *= elements_correct(attacker.element_set)
      self.damage /= 100
      # ????????????
      if self.damage > 0
        # ????????
        if rand(100) < 4 * attacker.dex / self.agi
          self.damage *= 2
          self.critical = true
        end
        # ????
        if self.guarding?
          self.damage /= 2
        end
      end
      # ??
      if self.damage.abs > 0
        amp = [self.damage.abs * 15 / 100, 1].max
        self.damage += rand(amp+1) + rand(amp+1) - amp
      end
      # ??????
      eva = 8 * self.agi / attacker.dex + self.eva
      hit = self.damage < 0 ? 100 : 100 - eva
      hit = self.cant_evade? ? 100 : hit
      hit_result = (rand(100) < hit)
    end
    # ?????
    if hit_result == true
      # ????????
      remove_states_shock
      # HP ?????????
      self.hp -= self.damage
      # ??????
      @state_changed = false
      states_plus(attacker.plus_state_set)
      states_minus(attacker.minus_state_set)
    # ?????
    else
      # ????? "Miss" ???
      self.damage = "Miss"
      # ?????????????
      self.critical = false
    end
    # ??????
    return true
  end
  #--------------------------------------------------------------------------
  # ? ????????
  #     user  : ??????? (????)
  #     skill : ???
  #--------------------------------------------------------------------------
  def skill_effect(user, skill)
    # ?????????????
    self.critical = false
    # ????????? HP 1 ?????????? HP ? 0?
    # ???????????? HP 0 ???????? HP ? 1 ?????
    if ((skill.scope == 3 or skill.scope == 4) and self.hp == 0) or
       ((skill.scope == 5 or skill.scope == 6) and self.hp >= 1)
      # ??????
      return false
    end
    # ?????????
    effective = false
    # ??????? ID ????????????????
    effective |= skill.common_event_id > 0
    # ??????
    hit = skill.hit
    if skill.atk_f > 0
      hit *= user.hit / 100
    end
    hit_result = (rand(100) < hit)
    # ????????????????????
    effective |= hit < 100
    # ?????
    if hit_result == true
      # ?????
      power = skill.power + user.atk * skill.atk_f / 100
      if power > 0
        power -= self.pdef * skill.pdef_f / 200
        power -= self.mdef * skill.mdef_f / 200
        power = [power, 0].max
      end
      # ?????
      rate = 20
      rate += (user.str * skill.str_f / 100)
      rate += (user.dex * skill.dex_f / 100)
      rate += (user.agi * skill.agi_f / 100)
      rate += (user.int * skill.int_f / 100)
      # ?????????
      self.damage = power * rate / 20
      # ????
      self.damage *= elements_correct(skill.element_set)
      self.damage /= 100
      # ????????????
      if self.damage > 0
        # ????
        if self.guarding?
          self.damage /= 2
        end
      end
      # ??
      if skill.variance > 0 and self.damage.abs > 0
        amp = [self.damage.abs * skill.variance / 100, 1].max
        self.damage += rand(amp+1) + rand(amp+1) - amp
      end
      # ??????
      eva = 8 * self.agi / user.dex + self.eva
      hit = self.damage < 0 ? 100 : 100 - eva * skill.eva_f / 100
      hit = self.cant_evade? ? 100 : hit
      hit_result = (rand(100) < hit)
      # ????????????????????
      effective |= hit < 100
    end
    # ?????
    if hit_result == true
      # ?? 0 ??????????
      if skill.power != 0 and skill.atk_f > 0
        # ????????
        remove_states_shock
        # ?????????
        effective = true
      end
      # HP ?????????
      last_hp = self.hp
          if self.damage .is_a?(Numeric) and self.damage < 0 and
        self.states.include?(25)
      self.damage = -self.damage
     end
          if skill.element_set.include?(7) and
        self.states.include?(25)
      self.damage = (self.damage * 1.5).to_i
     end
      self.hp -= self.damage
      effective |= self.hp != last_hp
      # ??????
      @state_changed = false
      effective |= states_plus(skill.plus_state_set)
      effective |= states_minus(skill.minus_state_set)
      # ??? 0 ???
      if skill.power == 0
        # ????????????
        self.damage = ""
        # ????????????
        unless @state_changed
          # ????? "Miss" ???
          self.damage = "Miss"
        end
      end
    # ?????
    else
      # ????? "Miss" ???
      self.damage = "Miss"
    end
    # ????????
    unless $game_temp.in_battle
      # ????? nil ???
      self.damage = nil
    end
    # ??????
    return effective
  end
  #--------------------------------------------------------------------------
  # ? ?????????
  #     item : ????
  #--------------------------------------------------------------------------
  def item_effect(item)
    # ?????????????
    self.critical = false
    # ?????????? HP 1 ?????????? HP ? 0?
    # ????????????? HP 0 ???????? HP ? 1 ?????
    if ((item.scope == 3 or item.scope == 4) and self.hp == 0) or
       ((item.scope == 5 or item.scope == 6) and self.hp >= 1)
      # ??????
      return false
    end
    # ?????????
    effective = false
    # ??????? ID ????????????????
    effective |= item.common_event_id > 0
    # ????
    hit_result = (rand(100) < item.hit)
    # ????????????????????
    effective |= item.hit < 100
    # ?????
    if hit_result == true
      # ??????
      recover_hp = maxhp * item.recover_hp_rate / 100 + item.recover_hp
      recover_sp = maxsp * item.recover_sp_rate / 100 + item.recover_sp
      if recover_hp < 0
        recover_hp += self.pdef * item.pdef_f / 20
        recover_hp += self.mdef * item.mdef_f / 20
        recover_hp = [recover_hp, 0].min
      end
      # ????
      recover_hp *= elements_correct(item.element_set)
      recover_hp /= 100
      recover_sp *= elements_correct(item.element_set)
      recover_sp /= 100
      # ??
      if item.variance > 0 and recover_hp.abs > 0
        amp = [recover_hp.abs * item.variance / 100, 1].max
        recover_hp += rand(amp+1) + rand(amp+1) - amp
      end
      if item.variance > 0 and recover_sp.abs > 0
        amp = [recover_sp.abs * item.variance / 100, 1].max
        recover_sp += rand(amp+1) + rand(amp+1) - amp
      end
      # ???????????
      if recover_hp < 0
        # ????
        if self.guarding?
          recover_hp /= 2
        end
      end
      # HP ????????????????????
      self.damage = -recover_hp
      # HP ??? SP ???
      last_hp = self.hp
      last_sp = self.sp
      self.hp += recover_hp
      self.sp += recover_sp
      effective |= self.hp != last_hp
      effective |= self.sp != last_sp
      # ??????
      @state_changed = false
      effective |= states_plus(item.plus_state_set)
      effective |= states_minus(item.minus_state_set)
      # ??????????????
      if item.parameter_type > 0 and item.parameter_points != 0
        # ????????
        case item.parameter_type
        when 1  # MaxHP
          @maxhp_plus += item.parameter_points
        when 2  # MaxSP
          @maxsp_plus += item.parameter_points
        when 3  # ??
          @str_plus += item.parameter_points
        when 4  # ???
          @dex_plus += item.parameter_points
        when 5  # ???
          @agi_plus += item.parameter_points
        when 6  # ??
          @int_plus += item.parameter_points
        end
        # ?????????
        effective = true
      end
      # HP ???????? 0 ???
      if item.recover_hp_rate == 0 and item.recover_hp == 0
        # ????????????
        self.damage = ""
        # SP ???????? 0???????????????
        if item.recover_sp_rate == 0 and item.recover_sp == 0 and
           (item.parameter_type == 0 or item.parameter_points == 0)
          # ????????????
          unless @state_changed
            # ????? "Miss" ???
            self.damage = "Miss"
          end
        end
      end
    # ?????
    else
      # ????? "Miss" ???
      self.damage = "Miss"
    end
    # ????????
    unless $game_temp.in_battle
      # ????? nil ???
      self.damage = nil
    end
    # ??????
    return effective
  end
  #--------------------------------------------------------------------------
  # ? ?????????????
  #--------------------------------------------------------------------------
  def slip_damage_effect
    # ???????
    self.damage = self.maxhp / 10
    # ??
    if self.damage.abs > 0
      amp = [self.damage.abs * 15 / 100, 1].max
      self.damage += rand(amp+1) + rand(amp+1) - amp
    end
    # HP ?????????
    self.hp -= self.damage
    # ??????
    return true
  end
  #--------------------------------------------------------------------------
  # ? ???????
  #     element_set : ??
  #--------------------------------------------------------------------------
  def elements_correct(element_set)
    # ??????
    if element_set == []
      # 100 ???
      return 100
    end
    # ???????????????????
    # ????? element_rate ?????????????? Game_Actor
    #   ??? Game_Enemy ?????????
    weakest = -100
    for i in element_set
      weakest = [weakest, self.element_rate(i)].max
    end
    return weakest
  end
end

The Zombie Status ad-on:

Quote
#  last_hp = self.hp
#  self.hp -= self.damage
#  effective |= self.hp != last_hp
#  effective |= states_plus(skill.plus_state_set)
#  effective |= states_minus(skill.minus_state_set)

# Under the line "last_hp = self.hp" add these lines:
#
#  if self.damage .is_a?(Numeric) and self.damage < 0 and
#      self.states.include?(ZOMBIE_STATUS_ID)
#    self.damage = -self.damage
#  end
#  if skill.element_set.include?(LIGHT_ELEMENT_ID) and
#      self.states.include?(ZOMBIE_STATUS_ID)
#    self.damage = (self.damage * 1.5).to_i
#  end
« Last Edit: February 24, 2007, 04:20:16 AM by Dark Angel Sion »

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Did you replace ZOMBIE_STATUS_ID with the actual status ID from the database and LIGHT_ELEMENT_ID with the ID of the Light element?
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!

*
A man chooses,
Rep:
Level 92
a slave obeys
Project of the Month winner for April 2008
Quote
      last_hp = self.hp
          if self.damage .is_a?(Numeric) and self.damage < 0 and
        self.states.include?(25)
      self.damage = -self.damage
     end
          if skill.element_set.include?(7) and
        self.states.include?(25)
      self.damage = (self.damage * 1.5).to_i
     end
7 is Light Element's ID In the Database
25 is Zombie Status in the Database

?_? I just don't know what I did wrong.

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
Hm, try to replace it with this code...

Code: [Select]
#==============================================================================
# ? Game_Battler (???? 3)
#------------------------------------------------------------------------------
# ???????????????????? Game_Actor ???? Game_Enemy ??
# ???????????????????
#==============================================================================

class Game_Battler
  #--------------------------------------------------------------------------
  # ? ??????????
  #     skill_id : ??? ID
  #--------------------------------------------------------------------------
  def skill_can_use?(skill_id)
    # SP ????????????
    if $data_skills[skill_id].sp_cost > self.sp
      return false
    end
    # ????????????
    if dead?
      return false
    end
    # ????????????????????
    if $data_skills[skill_id].atk_f == 0 and self.restriction == 1
      return false
    end
    # ????????
    occasion = $data_skills[skill_id].occasion
    # ??????
    if $game_temp.in_battle
      # [??] ??? [?????] ?????
      return (occasion == 0 or occasion == 1)
    # ?????????
    else
      # [??] ??? [??????] ?????
      return (occasion == 0 or occasion == 2)
    end
  end
  #--------------------------------------------------------------------------
  # ? ?????????
  #     attacker : ??? (????)
  #--------------------------------------------------------------------------
  def attack_effect(attacker)
    # ?????????????
    self.critical = false
    # ??????
    hit_result = (rand(100) < attacker.hit)
    # ?????
    if hit_result == true
      # ?????????
      atk = [attacker.atk - self.pdef / 2, 0].max
      self.damage = atk * (20 + attacker.str) / 20
      # ????
      self.damage *= elements_correct(attacker.element_set)
      self.damage /= 100
      # ????????????
      if self.damage > 0
        # ????????
        if rand(100) < 4 * attacker.dex / self.agi
          self.damage *= 2
          self.critical = true
        end
        # ????
        if self.guarding?
          self.damage /= 2
        end
      end
      # ??
      if self.damage.abs > 0
        amp = [self.damage.abs * 15 / 100, 1].max
        self.damage += rand(amp+1) + rand(amp+1) - amp
      end
      # ??????
      eva = 8 * self.agi / attacker.dex + self.eva
      hit = self.damage < 0 ? 100 : 100 - eva
      hit = self.cant_evade? ? 100 : hit
      hit_result = (rand(100) < hit)
    end
    # ?????
    if hit_result == true
      # ????????
      remove_states_shock
      # HP ?????????
      self.hp -= self.damage
      # ??????
      @state_changed = false
      states_plus(attacker.plus_state_set)
      states_minus(attacker.minus_state_set)
    # ?????
    else
      # ????? "Miss" ???
      self.damage = "Miss"
      # ?????????????
      self.critical = false
    end
    # ??????
    return true
  end
  #--------------------------------------------------------------------------
  # ? ????????
  #     user  : ??????? (????)
  #     skill : ???
  #--------------------------------------------------------------------------
  def skill_effect(user, skill)
    # ?????????????
    self.critical = false
    # ????????? HP 1 ?????????? HP ? 0?
    # ???????????? HP 0 ???????? HP ? 1 ?????
    if ((skill.scope == 3 or skill.scope == 4) and self.hp == 0) or
       ((skill.scope == 5 or skill.scope == 6) and self.hp >= 1)
      # ??????
      return false
    end
    # ?????????
    effective = false
    # ??????? ID ????????????????
    effective |= skill.common_event_id > 0
    # ??????
    hit = skill.hit
    if skill.atk_f > 0
      hit *= user.hit / 100
    end
    hit_result = (rand(100) < hit)
    # ????????????????????
    effective |= hit < 100
    # ?????
    if hit_result == true
      # ?????
      power = skill.power + user.atk * skill.atk_f / 100
      if power > 0
        power -= self.pdef * skill.pdef_f / 200
        power -= self.mdef * skill.mdef_f / 200
        power = [power, 0].max
      end
      # ?????
      rate = 20
      rate += (user.str * skill.str_f / 100)
      rate += (user.dex * skill.dex_f / 100)
      rate += (user.agi * skill.agi_f / 100)
      rate += (user.int * skill.int_f / 100)
      # ?????????
      self.damage = power * rate / 20
      # ????
      self.damage *= elements_correct(skill.element_set)
      self.damage /= 100
      # ????????????
      if self.damage > 0
        # ????
        if self.guarding?
          self.damage /= 2
        end
      end
      # ??
      if skill.variance > 0 and self.damage.abs > 0
        amp = [self.damage.abs * skill.variance / 100, 1].max
        self.damage += rand(amp+1) + rand(amp+1) - amp
      end
      # ??????
      eva = 8 * self.agi / user.dex + self.eva
      hit = self.damage < 0 ? 100 : 100 - eva * skill.eva_f / 100
      hit = self.cant_evade? ? 100 : hit
      hit_result = (rand(100) < hit)
      # ????????????????????
      effective |= hit < 100
    end
    # ?????
    if hit_result == true
      # ?? 0 ??????????
      if skill.power != 0 and skill.atk_f > 0
        # ????????
        remove_states_shock
        # ?????????
        effective = true
      end
      # HP ?????????
      last_hp = self.hp
      if self.damage .is_a?(Numeric) and self.damage < 0 and self.states.include?(25)
        self.damage = -self.damage
      end
      if skill.element_set.include?(7) and self.states.include?(25)
        self.damage = (self.damage * 1.5).to_i
      end
      self.hp -= self.damage
      effective |= self.hp != last_hp
      # ??????
      @state_changed = false
      effective |= states_plus(skill.plus_state_set)
      effective |= states_minus(skill.minus_state_set)
      # ??? 0 ???
      if skill.power == 0
        # ????????????
        self.damage = ""
        # ????????????
        unless @state_changed
          # ????? "Miss" ???
          self.damage = "Miss"
        end
      end
    # ?????
    else
      # ????? "Miss" ???
      self.damage = "Miss"
    end
    # ????????
    unless $game_temp.in_battle
      # ????? nil ???
      self.damage = nil
    end
    # ??????
    return effective
  end
  #--------------------------------------------------------------------------
  # ? ?????????
  #     item : ????
  #--------------------------------------------------------------------------
  def item_effect(item)
    # ?????????????
    self.critical = false
    # ?????????? HP 1 ?????????? HP ? 0?
    # ????????????? HP 0 ???????? HP ? 1 ?????
    if ((item.scope == 3 or item.scope == 4) and self.hp == 0) or
       ((item.scope == 5 or item.scope == 6) and self.hp >= 1)
      # ??????
      return false
    end
    # ?????????
    effective = false
    # ??????? ID ????????????????
    effective |= item.common_event_id > 0
    # ????
    hit_result = (rand(100) < item.hit)
    # ????????????????????
    effective |= item.hit < 100
    # ?????
    if hit_result == true
      # ??????
      recover_hp = maxhp * item.recover_hp_rate / 100 + item.recover_hp
      recover_sp = maxsp * item.recover_sp_rate / 100 + item.recover_sp
      if recover_hp < 0
        recover_hp += self.pdef * item.pdef_f / 20
        recover_hp += self.mdef * item.mdef_f / 20
        recover_hp = [recover_hp, 0].min
      end
      # ????
      recover_hp *= elements_correct(item.element_set)
      recover_hp /= 100
      recover_sp *= elements_correct(item.element_set)
      recover_sp /= 100
      # ??
      if item.variance > 0 and recover_hp.abs > 0
        amp = [recover_hp.abs * item.variance / 100, 1].max
        recover_hp += rand(amp+1) + rand(amp+1) - amp
      end
      if item.variance > 0 and recover_sp.abs > 0
        amp = [recover_sp.abs * item.variance / 100, 1].max
        recover_sp += rand(amp+1) + rand(amp+1) - amp
      end
      # ???????????
      if recover_hp < 0
        # ????
        if self.guarding?
          recover_hp /= 2
        end
      end
      # HP ????????????????????
      self.damage = -recover_hp
      # HP ??? SP ???
      last_hp = self.hp
      last_sp = self.sp
      self.hp += recover_hp
      self.sp += recover_sp
      effective |= self.hp != last_hp
      effective |= self.sp != last_sp
      # ??????
      @state_changed = false
      effective |= states_plus(item.plus_state_set)
      effective |= states_minus(item.minus_state_set)
      # ??????????????
      if item.parameter_type > 0 and item.parameter_points != 0
        # ????????
        case item.parameter_type
        when 1  # MaxHP
          @maxhp_plus += item.parameter_points
        when 2  # MaxSP
          @maxsp_plus += item.parameter_points
        when 3  # ??
          @str_plus += item.parameter_points
        when 4  # ???
          @dex_plus += item.parameter_points
        when 5  # ???
          @agi_plus += item.parameter_points
        when 6  # ??
          @int_plus += item.parameter_points
        end
        # ?????????
        effective = true
      end
      # HP ???????? 0 ???
      if item.recover_hp_rate == 0 and item.recover_hp == 0
        # ????????????
        self.damage = ""
        # SP ???????? 0???????????????
        if item.recover_sp_rate == 0 and item.recover_sp == 0 and
           (item.parameter_type == 0 or item.parameter_points == 0)
          # ????????????
          unless @state_changed
            # ????? "Miss" ???
            self.damage = "Miss"
          end
        end
      end
    # ?????
    else
      # ????? "Miss" ???
      self.damage = "Miss"
    end
    # ????????
    unless $game_temp.in_battle
      # ????? nil ???
      self.damage = nil
    end
    # ??????
    return effective
  end
  #--------------------------------------------------------------------------
  # ? ?????????????
  #--------------------------------------------------------------------------
  def slip_damage_effect
    # ???????
    self.damage = self.maxhp / 10
    # ??
    if self.damage.abs > 0
      amp = [self.damage.abs * 15 / 100, 1].max
      self.damage += rand(amp+1) + rand(amp+1) - amp
    end
    # HP ?????????
    self.hp -= self.damage
    # ??????
    return true
  end
  #--------------------------------------------------------------------------
  # ? ???????
  #     element_set : ??
  #--------------------------------------------------------------------------
  def elements_correct(element_set)
    # ??????
    if element_set == []
      # 100 ???
      return 100
    end
    # ???????????????????
    # ????? element_rate ?????????????? Game_Actor
    #   ??? Game_Enemy ?????????
    weakest = -100
    for i in element_set
      weakest = [weakest, self.element_rate(i)].max
    end
    return weakest
  end
end

I've encountered an odd error the other day. It said

Quote
no method "ยด end" defined for ... blahblahblah

The line was "  end", but the first space seemed to be a kinda different symbol. I'll be sure to improve the Zombie status in the next release of Tons of Add-ons. =/
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!

*
A man chooses,
Rep:
Level 92
a slave obeys
Project of the Month winner for April 2008
 :=: Something happened, I don't know, but when my monster putted me Zombie status, it gave me this in the Game:



Somehow..what does the Stormtronic's CMS has to do with the Zombie status =/

********
EXA
Rep:
Level 92
Pikachu on a toilet
Project of the Month winner for April 2007
That's weird. O_o Upload your Scripts.rxdata, I'll fix it directly.
Get King of Booze for Android, for iOS, for OUYA or for Windows!
Visit our website.
You can also love/hate us on Facebook or the game itself.


Get DropBox, the best free file syncing service there is!

*
A man chooses,
Rep:
Level 92
a slave obeys
Project of the Month winner for April 2008

*
A man chooses,
Rep:
Level 92
a slave obeys
Project of the Month winner for April 2008
Any news on what's causing it? >.>;;