I made this script:
When i run it i get this error:
Code:
#--------------------------------------------------------------------------
# * Add on Script.
# V 1.0
# By Cheatking
#--------------------------------------------------------------------------
class Add_On
if FileTest.exist?("add on 1.txt")
# Switches
$game_switches["switch_1"] = true
else
$game_switches["switch_1"] = false
end
end
Script ' ' line 10: NoMethodError occurred.
undefined method `[]='for nil:NilClass