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.
[RMXP] Script Error need help.

0 Members and 1 Guest are viewing this topic.

***
Rep:
Level 76
RMRK Junior
Script 'Window_BattleResult' line 88: NoMethodError occurred.

undefined method '[]' for nil:NilClass
(It happens if I finish a battle with a Knocked Out Char.)

Other Scripts I use are...

SDK I
SDK V1.4
SDK 2.2 - Part II
SDK 2.2 - Part III
SDK 2.2 - Part IV

 'GnD' & 'LBMenu' Patch

GROUPIND & DETAILS
 1- Configuration
 2- Mechanics & Error Checking
 3- Modules
 4- Window
 5- Scene

 HP/SP/EXP Gauge Script V1.0
 Limit Break (DVV)
 'Attack' Option Replacer
 Limit Break Menu Pt. 1
 Limit Break Menu Pt. 2
 HP/MP/ATB (Seph Slant)

Enemy Life Bar
UMS
Extra Modifications
Configuration
Scene_Battle#Edits
Window_BattleResults
File Error Fix & Report
Anti-Lag Script

Window_BattleResults
Code: [Select]
  def setup_text
    # Get Exp Text
    exp_text = LufiaII_Result::Get_Exp_Text.dup
    # Replace [exp] with exp gained
    exp_text.gsub!(/\[exp\]/, "#{@exp}")
    # Replace [words] with the word for Exp
    exp_text.gsub!(/\[words\]/, LufiaII_Result::Words_Exp)
    # Push Text
    @data << exp_text
    # Get Gold Text
    gold_text = LufiaII_Result::Get_Gold_Text.dup
    # Replace [gold] with gold gained
    gold_text.gsub!(/\[gold\]/, "#{@gold}")
    # Replace [words] with the word for gold
    gold_text.gsub!(/\[words\]/, $data_system.words.gold)
    # Push Text
    @data << gold_text
    # Get Treasure Text
    @treasures.each_with_index do |treasure, index|
      # Get Item Text
      item_text = LufiaII_Result::Get_Item_Text.dup
      # Replace [icon] with \001[index]
      item_text.gsub!(/\[icon\]/, "\001[#{index}]")
      # Replace [name] with Item Name
      item_text.gsub!(/\[name\]/, "#{treasure.name}")
      # Push Text
      @data << item_text
    end
    # Blank Line
    @data << ''
    # Run Through Each Actor with index
    $game_party.actors.each_with_index do |actor, actor_index|
      # Get Next Level Text
      level_text = LufiaII_Result::Next_Level_Text.dup
      # Replace [name] with actor name
      level_text.gsub!(/\[name\]/, actor.name)
      # Replace [amount] with exp left
      level_text.gsub!(/\[amount\]/, "#{actor.next_exp - actor.now_exp}")
      # If Level Up Flag is False
    ---  if @level_flags[actor_index][0] == false ---  <---- LINE 88 ERROR
        # Push Text
        @data << level_text
      else
        # Get Level Up Text
        levelup_text = LufiaII_Result::Level_Up_Text.dup
        # Replace [name] with the actor name
        levelup_text.gsub!(/\[name\]/, actor.name)
        # Replace [level] with the actor's level
        levelup_text.gsub!(/\[level\]/, "#{actor.level}")
        # Push Level up text
        @data << levelup_text
        # Get Learned Skills for level
        skills = $data_classes[actor.class_id].learn_skills(actor.level)
        # Run through each skill with index
        skills.each_with_index do |skill_id, index|
          # Get Skill Learn Text
          skill_learn_text = LufiaII_Result::Get_Skill_Text.dup
          # Replace [icon] with \003|skill_id|
          skill_learn_text.gsub!(/\[icon\]/, "\003|#{skill_id}|")
          # Replace [name] with skill name
          skill_learn_text.gsub!(/\[name\]/, $data_skills[skill_id].name)
          # Push Text
          @data << skill_learn_text
        end
        # Run Through Stats Defined with index
        LufiaII_Result::Stats.each_with_index do |stat, index|
          # Get Stat Text
          stat_text = LufiaII_Result::Stat_Up_Text.dup
          # Replace [stat] with Stat name
          stat_text.gsub!(/\[stat\]/, LufiaII_Result::Stat_Names[index])
          # Get Stat Change
          amount = actor.stat_change(index, @level_flags[actor_index][1])
          # Replace [amount] with the stat change amount
          stat_text.gsub!(/\[amount\]/, "#{amount}")
          # Push Stat Text
          @data << stat_text
        end
        # Push Level Text
        @data << level_text
        # Push Blank if not last actor
        @data << '' if actor_index != $game_party.actors.size - 1
      end
    end
    # Push Blank
    @data << ''
    # Get Current Gold Text
    cgold_text = LufiaII_Result::Gold_Text.dup
    # Replace [gold] with the current gold
    cgold_text.gsub!(/\[gold\]/, "#{$game_party.gold}")
    # Replace [words] with the word for gold
    cgold_text.gsub!(/\[words\]/, $data_system.words.gold)
    # Push Current Gold Text
    @data << cgold_text
  end
 
« Last Edit: August 27, 2010, 04:45:37 AM by Cedricsawall2 »
Now Your nightmare comes to life.

[RMXP] CRYSTaL KNigHTS: The First Dawn - 20%
[RMXP] White Ruins - 10 %

***
Rep:
Level 76
RMRK Junior
Now Your nightmare comes to life.

[RMXP] CRYSTaL KNigHTS: The First Dawn - 20%
[RMXP] White Ruins - 10 %

**
Rep: +0/-0Level 63
RMRK Junior
I sujest you contact blizzard directly