"Events" Question

I'm sorry if this is in the wrong place. Feel free to correct me if I'm being clueless.

I guess I have two questions involving how to script something. I'm still incredibly new at scripting, and I don't want to do anything overly complicated yet--I'm just looking at how to use it during Events as small bits, for now. So, my questions:

1. Is it possible to script something along the lines of, "Create new Event in front of player" ?

2. If not, is it possible to script something that says, "Move Event in front of player" ?

The overall goal is to either create a new Event, or alternatively move an existing Event, onto the tile directly in front of the player (with respect to whichever direction the player is facing). Any help would be much appreciated.
I've moved this thread to VX Ace Support. Please be sure to post your threads in the correct forum next time. Thank you.

When you're talking about scripting, do you actually MEAN scripting (as in press F11 to go into the Ruby scripts and actually program) or are you talking about event commands? The two things refer to very different activities and are not interchangeable.

To create a NEW event in front of the player, you WOULD need to use a script. I think Tsukihime has written an event generator script that you could look at.

If you already HAVE an event and you just want to MOVE it, you would do something like this (don't use the variables I'm using - choose what you have available, and replace the ones I use with the ones you allocate):

Code:
Control Variables [0001: X]: Player's X PositionControl Variables [0002: Y]: Player's Y PositionControl Variables [0003: Dir]: Player's DirectionConditional Branch: Variable [0003: Dir] == 2  Control Variables [0002: Y] += 1Else  Conditional Branch: Variable [0003: Dir] == 4    Control Variables [0001: X] -= 1  Else    Conditional Branch: Variable [0003: Dir] == 6      Control Variables [0001: X] += 1    Else      Control Variables [0002: Y] -= 1    Branch End  Branch EndBranch EndSet Event Location (the event you want to move): Variable [0001: X], Variable [0002: Y]Set Move Route (the event you want to move): Turn Toward Player
This does not take into account whether the tile in front of the player is actually passable or not. Your event could end up on a tree trunk, in a river, on the wall of a cliff, or floating in mid-air.
Thank you! I was afraid I'd put it in the wrong place, but didn't know where to put it. Thanks!! Sorry again.

In my mind, I meant Event commands. Thank you very much for this--I'll give it a try!

Original thread: https://forums.rpgmakerweb.com/threads/events-question.17853/