I have an event called "crate" with a "action key" trigger and this code:
<>Move Event:: This Event (Ignore Impossible moves)
: :<>Move away from hero
<>Wait: 5 Frames
<>
How can i make it so that when it is in a certain spot, the value of a variable goes up? I tried to do this with events, but it didn't work.
You can try looking a minigame called Gamos I made long ago: http://rmrk.net/index.php/topic,166.0.html
It might be too much for what you are trying to do though...
If you want to do it with events then Terrain Tags is a good idea if you have several spots.
Otherwise you can try to make a basic x- and y-coordinate check.
and how do you do the x and y coordinate check? (me = noob)
Variable Operations : Variable is this events X tile
Variable Operations : Variable is this events Y tile
in the event you want the x and Y from.