Player spawns NPC next to him, anywhere on the map

Hello,


I am working on a game, where the player, a Summoner, summons monsters (NPC's not party members) that will appear next to him anywhere on the map. I am did start by creating


a common event binded to a key, where in the player is given the option to summon or not. But have no idea how to move forward.


PS: I am new to RPG Maker vx Ace, so it would be so much help if you can give me the steps in detail.


Thank you arigatou gozaimasu!
use two control variable commands to get the player position into two variables (game data section of control variable).


Then calculate a position next to that and check if that is passable, and use set event position to place the event there.


You cannot create or copy/clone events without a script, so you either need to prepare that summoned event for every map (and it needs the same ID on every map), or you have to use one of the clone event scripts from the master script list. Follow the link "how to use a script" in my signature to learn how to do that.


And if you're new, you might want to follow the starting point link there as well to learn mor about events
@Andar


So I make a parallel process, control variables=gamedata=character=player's MAP X (do the samething for Y)?


"Then calculate a position next to that and check if that is passable, and use set event position to place the event there. "


How do you do this in RPGMAKER ACE? I don't see any of these in the menu.
Hmm... If it's just on the map, not in battle, then use the "move event" or "call event", a name alike, to make it appear next to the player, base on preset variable. Of course, since I'm only working with MV (and thus in french), it's a bit hard to be more specific.


I'll try to make you a video about my own system. Basically, it's what @Andar said. I'm not sure it could be done with Ace.


Here, is it what you'd like to achieve (that vid was quit quickly made, sorry for the poor quality).
So I make a parallel process, control variables=gamedata=character=player's MAP X (do the samething for Y)?

No - never use a parallel process unless you absolutely have to.


Place those commands in the common event that is handling the summoning, to be executed on summoning only.


As for the rest: all mathematic functions are inside the control variable command, you just need to use that command in the correct sequence and check the results with conditional branches.


And all the commands I described are event commands from Ace - look again (or work through the tutorials on eventing like adviced). There is no difference between Ace and MV on the event level (and not much of a difference to earlier makers either unless you go back to pre-XP)
@Andar @Nanaya


Got it to work, more easy way:


1) Use the variables to track player's position


2) Use Set Event Location using the variables of the player's position


Works Perfect!


Thanks guys!
Your welcome.

Original thread: https://forums.rpgmakerweb.com/threads/player-spawns-npc-next-to-him-anywhere-on-the-map.66766/