Player spawns NPC next to him, anywhere on the map

tushime1976

Veteran
Veteran
Joined
Dec 13, 2013
Messages
94
Reaction score
4
First Language
English
Primarily Uses
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!
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
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
 

tushime1976

Veteran
Veteran
Joined
Dec 13, 2013
Messages
94
Reaction score
4
First Language
English
Primarily Uses
@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.
 

Nanaya

Veteran
Veteran
Joined
Jun 5, 2016
Messages
76
Reaction score
18
First Language
French
Primarily Uses
RMMV
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).
 
Last edited by a moderator:

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
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)
 

tushime1976

Veteran
Veteran
Joined
Dec 13, 2013
Messages
94
Reaction score
4
First Language
English
Primarily Uses
@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!
 

Nanaya

Veteran
Veteran
Joined
Jun 5, 2016
Messages
76
Reaction score
18
First Language
French
Primarily Uses
RMMV
Your welcome.
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.
Do you Find Tilesetting or Looking for Tilesets/Plugins more fun? Personally I like making my tileset for my Game (Cretaceous Park TM) xD
How many parameters is 'too many'??

Forum statistics

Threads
105,865
Messages
1,017,059
Members
137,574
Latest member
nikisknight
Top