Hello everyone,
I've been having some trouble with the "Khas Awesome Light Effects" script.
Whenever I create an event, set a "Comment: [light 0]" I get an error when starting the game
I really suck at scripting and understand very little of it.
I honestly don't know what I did wrong.
I looked at tutorial videos, mimicked exactly what they did and still got this...
(The lantern/flashlight option does work)
This is the code the error is referring to,
unless dispose && @list.nil?for command in @listif command.code == 108 && command.parameters[0].include?("[light")command.parameters[0].scan(/\[light ([0.0-9.9]+)\]/)effect = Light_Core::Effects[$1.to_i]@light = Light_SSource.new(self,effect[0],effect[1],effect[2],effect[3])$game_map.light_sources << selfreturnendendendendthis one specifically (line 680)
@light = Light_SSource.new(self,effect[0],effect[1],effect[2],effect[3])Does anyone have any idea how to fix this?
I've been having some trouble with the "Khas Awesome Light Effects" script.
Whenever I create an event, set a "Comment: [light 0]" I get an error when starting the game
I really suck at scripting and understand very little of it.
I honestly don't know what I did wrong.
I looked at tutorial videos, mimicked exactly what they did and still got this...
(The lantern/flashlight option does work)
This is the code the error is referring to,
unless dispose && @list.nil?for command in @listif command.code == 108 && command.parameters[0].include?("[light")command.parameters[0].scan(/\[light ([0.0-9.9]+)\]/)effect = Light_Core::Effects[$1.to_i]@light = Light_SSource.new(self,effect[0],effect[1],effect[2],effect[3])$game_map.light_sources << selfreturnendendendendthis one specifically (line 680)
@light = Light_SSource.new(self,effect[0],effect[1],effect[2],effect[3])Does anyone have any idea how to fix this?