As the title says, i need a script that can change the windowsking based on an ingame variable. I tried doing it myself (modifying the game scripts), but i always get the same error of nil:NilClass when calling for the in-game variable $game_variables[15]
can someone help me at least telling em how to address the variable properly?
I think i could change it in here in Window Base:
and here in Game System:
But, of course that's not working...
Is there a way to make it? can someone help me please?
The Windowskin Files are called 1, 2,3 and 4. That's how i plan to call them with the variable
can someone help me at least telling em how to address the variable properly?
I think i could change it in here in Window Base:
def update
super
if $game_system.windowskin_name != @windowskin_name
@windowskin_name = $game_system.windowskin_name
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
end
end
super
if $game_system.windowskin_name != @windowskin_name
@windowskin_name = $game_system.windowskin_name
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
end
end
def update
super
if $game_system.windowskin_name != @windowskin_name
@windowskin_name = $game_variables[15]
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
end
end
super
if $game_system.windowskin_name != @windowskin_name
@windowskin_name = $game_variables[15]
self.windowskin = RPG::Cache.windowskin(@windowskin_name)
end
end
and here in Game System:
def windowskin_name
if @windowskin_name == nil
return $data_system.windowskin_name
else
return @windowskin_name
end
end
if @windowskin_name == nil
return $data_system.windowskin_name
else
return @windowskin_name
end
end
def windowskin_name
if @windowskin_name == nil
return $game_variables[15]
else
return @windowskin_name
end
end
if @windowskin_name == nil
return $game_variables[15]
else
return @windowskin_name
end
end
But, of course that's not working...
Is there a way to make it? can someone help me please?
The Windowskin Files are called 1, 2,3 and 4. That's how i plan to call them with the variable