Eoncounter for moving events

piksalh

Veteran
Veteran
Joined
Jun 14, 2014
Messages
106
Reaction score
9
First Language
Lithuanian
Primarily Uses
RMMV
Howdy dear makers,

Could you help me to solve a problem?

I use specific moving system in my game world map. Basically the player is a pointer and moves around the map to choose where to go for a plane event. When the player hits enter, the plane event starts to go to the target tile by auto pathing.

The problem is encounters. Since encounters works only when real player moves, no encounters are triggered when the plane event moves to the target tile. How can I change that encounters would be triggered only when the plane event moves?

Another problem is that it should look at the region Id of the plane event tile, not player pointer tile. Any ideas how to make it? Thank you in advance!

Just in case since my Engrish is not very clear, please find attached picture with a visual explanation.

P.S. One way to solve it is to fade down, teleport player to the plane place, then change player graphics to the plane and enable encounters before player auto pathing starts. But I can't change player graphics to the plane and make it happen to auto move player plane instead of event plane, because I need a possibility to move a pointer around the map even when the plane is on the route.
 

Attachments

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
you can't use the default encounter, so you need to make your own encounter mechanic.
For each step that the plane is commanded to move (you do that somewhere after all), call a common event to check if an encounter happens and if yes use battleprocessing to start it.
 

piksalh

Veteran
Veteran
Joined
Jun 14, 2014
Messages
106
Reaction score
9
First Language
Lithuanian
Primarily Uses
RMMV
Good idea, but how can I call a common event after each step? The auto movement works by Smart Pathfinding plugin command. I uploaded the picture with the event. Can you help me to specify, where should I put common event command? Thanks!
 

Attachments

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
when using a pathfinding plugin, it is a bit more complex - but you could call the common event directly after the plugin command, and just need a check to see if a move happened or not before checking for an encounter - two variables (current step and past step number) with a conditional branch should be enough for that check.
 

piksalh

Veteran
Veteran
Joined
Jun 14, 2014
Messages
106
Reaction score
9
First Language
Lithuanian
Primarily Uses
RMMV
Could you explain me how to set these variables? I am a little confused about what it should do.

Edit: OK i think Ive found the method how to control two variables and then set conditional branch to check is there is a difference between steps. But the problem is that Steps function only checks player steps, not the event steps.

Edit 2: There is a script call for that.

$gameMap.regionId($gameMap.event(m).x, $gameMap.event(m).y) === n


N = Region ID

M = Event ID (if you are looking for the x, y of another event) or this._eventId (for the current event)

So, now my problem is how to set that when the event is let's say in region 1, it would be 10% probability after each second to start battle processing. And how to disable it when event is stopped.
 
Last edited:

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

Latest Threads

Latest Profile Posts

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
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

Forum statistics

Threads
105,868
Messages
1,017,070
Members
137,577
Latest member
SadaSoda
Top