Oh, Variable 5! (Moby's Text SE & Yanfly's Victory Aftermath!)

RetroSoldier

Villager
Member
Joined
Jul 17, 2013
Messages
26
Reaction score
5
First Language
English
Primarily Uses
So I made the changes (I think), and tried this...

class Game_Actor < Game_Battler  attr_accessor :game_variables[5]

  

  alias zale_actor_init_587vgnmdi3 initialize

  def initialize(name)

    case actor.name

      when 'Eric'

        $game_variables[5] = 2

      when 'Ryoma'

        $game_variables[5] = 3

      when 'Ernest'

        $game_variables[5] = 2

      when 'Terence'

        $game_variables[5] = 2

      when 'Isabelle'

        $game_variables[5] = 4

      when 'Alice'

        $game_variables[5] = 4

      when 'Noah'

        $game_variables[5] = 3

      else

        $game_variables[5] = 7

    end

    zale_actor_init_587vgnmdi3(name)

  end

end
Now it will boot to title, but will crash as soon as "New" is selected.  It gives me the message...
"Script ‘Game_Actor’ line 52: TypeError occurred. No implicit conversion from nil to integer."

​When I open the scripts after that, it takes me to Line 52 of the Game_Actor script, the one under the Game Objects section.

Got to admit, I don't have an inkling as to the 'why' this time...
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,367
Reaction score
7,676
First Language
German
Primarily Uses
RMMV
there are a few things that could cause those errors, mainly if something happens during initialisation.

I can think of another approach to solve the issue, but it's late here and I have a full day tomorrow.

I'll try to post a solution script tomorrow evening.

If someone else has more time before I can post it: I'm thinking of moving the fix to Yanfly's side and alias the set_victory_text function to include the case sequence there.
 

RetroSoldier

Villager
Member
Joined
Jul 17, 2013
Messages
26
Reaction score
5
First Language
English
Primarily Uses
Take your time, man. You guys have done way more than I was expecting when I posted this. 

Also, I'm going to start testing these scripts in a new project with *only* the related scripts installed...in the off, off chance one of my other installed scripts is causing a would-be solution to fail...
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top