09-01-2025, 01:56 AM
(This post was last modified: 09-01-2025, 01:57 AM by DerVVulfman.)
I see something actually more malicious.
According to your error message, [font=Courier New]undefined method '-' for nil:NilClass[/font, the value being subtracted does not exist. And the value is $game_system.lead_actor. This suggests that you have no lead_actor value defined in Game_System.
However...
Here, we can see that the value is indeed created within Game_System within its 'initialize' method.
On seeing that, I am under the opinion that you have another script further below in your list that is rewriting the 'initialize' method, and thus erasing anything added in this manner.
Rearranging the scripts (SCRIPT ORDER) should suffice. You just need to find what script alters the Initialize method but does not use alias to add new content.
Other scripts could be suffering, and you jmay not yet notice.
According to your error message, [font=Courier New]undefined method '-' for nil:NilClass[/font, the value being subtracted does not exist. And the value is $game_system.lead_actor. This suggests that you have no lead_actor value defined in Game_System.
However...
Code:
class Game_System
#--------------------------------------------------------------------------
# * Alias Listing
#--------------------------------------------------------------------------
attr_reader :lead_actor
#--------------------------------------------------------------------------
# * Refresh
#--------------------------------------------------------------------------
alias slipknot_las_init initialize
#--------------------------------------------------------------------------
# * Initialize
#--------------------------------------------------------------------------
def initialize
slipknot_las_init
@lead_actor = 0
end
Here, we can see that the value is indeed created within Game_System within its 'initialize' method.
On seeing that, I am under the opinion that you have another script further below in your list that is rewriting the 'initialize' method, and thus erasing anything added in this manner.
Rearranging the scripts (SCRIPT ORDER) should suffice. You just need to find what script alters the Initialize method but does not use alias to add new content.
Other scripts could be suffering, and you jmay not yet notice.