How can I make the game check if the config.autoAct value should be set to 0 or 1 before interacting with a sprite. Currently I have config.autoAct set to 0 when the game starts, and the following script added to the player.
on confirm do
act
end
Is there a way to change the config.autoAct value to 1 depending on which sprite the player is about to interact with? I suppose I could surround a sprite with tiles that would change the config.autoAct value but there must be an simpler way. Ideally any chests, signs or NPC would require A to interact, and enemies would require a bump to interact. Any help would be great.