Ah, okay! It works perfectly, and it isn't complex at all.
Thank you very much, both of you!
EDIT: I'm having a somewhat unrelated issue, but it's also somewhat related, so I figured I'd just ask here instead of starting a new thread. It's based upon that exact same issue that I was just having; the script box is too small!
Anyway, I'm attempting to determine the event id of event1, whose coordinates are set to variables 38(x) and 39
, after which I want to turn event1's A switch on. This is what I have:
x=$game_variables[38]
y=$game_variables[39]
$game_variables[37] = event_at(x,y)
And then, in a separate script box:
key = [$game_variables[27], $game_variables[37], 'A']
$game_self_switches[key] = true
$game_map.need_refresh = true
Note: Variable 27 stores the current map id.
However, the second script box is actually displayed like this, because it's so small:
key = [$game_variables[27],
$game_variables[37], 'A']
$game_self_switches[key] = true
$game_map.need_refresh = true
Seeing as how it doesn't work, I'm assuming that the tiny script box has broken my script again. Does anyone know of a work-around that I could use?
EDIT2: Got it! There was a conflicting event that I made days ago on the same map :|
Thanks, everyone :3
EDIT3: Just thought that I'd let you know that I found a wonderful use for your suggestion too, Atoa :3