The RPG Maker Resource Kit

RMRK RPG Maker Creation => Requests => Script Request => Topic started by: Gnarizard on July 14, 2010, 08:44:16 AM

Title: [Request] Remote Event Activation
Post by: Gnarizard on July 14, 2010, 08:44:16 AM
Remote Event Activation
07-14-10




Summary
Basically what this needs to do is activate an event the same way as if
the player had faced it and pressed enter, except from several tiles away.
It needs to run the commands from inside the target event
so that things like Self-Switches can be handled.
More specifically, I'm using a "Self-Variable" script,
and that needs to be run straight out of the desired event,
just like self-switches...

Features Desired

Mockups
N/A

Games its been in




Did you search?
Yep

Where did you search?

What did you search for?

Final Thought:
I figure it would be simple to script if I knew what I were doing...
I'd probably find how the game decides which event to activate,
then make a script that manipulates that function to activate the
event at location x,y -- x and y being variables I'd assign.
...except I'd likely break the system and/or get buttloads of errors...

But does that seem about right to anyone,
or is that just not how it works?


Edit:
On a moderately-related note, I found a snippet that changes a self-switch,
but I still need remote event activation.
As for the self-switch snippet, I need to know why the following does not work:
$game_self_switches
[[3,$game_variables[2],"A"]]=true

I wish to set Variable 2 to a value (say 7), and for that snippet to become
$game_self_switches
[[3,7,"A"]]=true

which should turn Self-Switch A on in Event #7 which is on Map #3, however, I instead get a syntax error.