Hi! I'm using a mini-map that it's triggered by a switch, so I'm trying to turn the switch on and off when pressing a button, however, I don't know much about Ruby and I'm probably missing something (maybe some kind of break to prevent the conditional from looping?)
The code I wrote is as follows:
I would appreciate if someone has the time to tell me what I'm doing wrong or missing! Thanks before hand =)
	
	
The code I wrote is as follows:
Code:
if Input.trigger?(Input::L)
 if $game_switches[2] = false    
$game_switches[2] = true    
end 
if $game_switches[2] = true   
$game_switches[2] = false 
end 
endI would appreciate if someone has the time to tell me what I'm doing wrong or missing! Thanks before hand =)
I'm looking for a scripter to help me with my proyect. Need some minor adjustments-modifications and some larger codes. The larger ones will be remunerated :) Thanks beforehand.
	
	

 
 

 

 
 
 
		