So, pretty new to scripting from scratch and am working on something which I think should be simple.
So this part of the script is supposed to set weather or not the language filter is on and display the right message depending;
This is the test method, which is supposed to show stars instead of the swear word if the language filter is on
But for the life of me I cannot get it to function properly... currently the switch changes nothing and the language filter is constantly on.
Can anyone help me out?
So this part of the script is supposed to set weather or not the language filter is on and display the right message depending;
@adult = true
def method_adult()
case
when @adult == true
$game_message.add("Adult language filter on")
@adult = false
when @adult == false
$game_message.add("Adult language filter off")
@adult = true
else
####
end
end
def method_adult()
case
when @adult == true
$game_message.add("Adult language filter on")
@adult = false
when @adult == false
$game_message.add("Adult language filter off")
@adult = true
else
####
end
end
This is the test method, which is supposed to show stars instead of the swear word if the language filter is on
def methodq()
string = "Well Frick you!"
unless @adult == true
string.gsub!("Frick", "****")
end
$game_message.add(string)
end
string = "Well Frick you!"
unless @adult == true
string.gsub!("Frick", "****")
end
$game_message.add(string)
end
But for the life of me I cannot get it to function properly... currently the switch changes nothing and the language filter is constantly on.
Can anyone help me out?
