Certain Event touch?

Ashtonion

Classic Creator
Veteran
Joined
Jan 3, 2014
Messages
112
Reaction score
0
First Language
english
Primarily Uses
Hello all, I'd really enjoy some help on how I would alter the 'Event Touch' trigger. It's a pretty simple question, I just want to know how I would make it that something happens when a CERTAIN even touches another event and NOT the player touches it. For example, there is a puzzle in which each piece has to be put in the right square and when it is, something happens. 

All help appreciated thanks!

By the way, I'm using Vlue's Field Abilities.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
There is no event-to-event trigger, you have to either use scripts or use a parallel process checking on the position of the events, or - and that might be the best in this case depending on the puzzle - have the process that moves this event check the target position.


Please check the tutorials in the Degica-Blog, there are several explaining how to handle the different puzzle mechanics without event-to-event triggers.
 

Ashtonion

Classic Creator
Veteran
Joined
Jan 3, 2014
Messages
112
Reaction score
0
First Language
english
Primarily Uses
Alright, but here's another example. There's a bridge with a hole in it, and you can push a block, or some object into it to walk across. I was thinking of event touch, but the player could touch it first and it would just be messed up.
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Please read the tutorials on the event puzzles - that can be done by pure eventing, without scripts - you just need the block-event to check its own coordinates after each move, and if it is on the (unpassable) hole, then it needs to turn itself into a bridge.


You need only a single event for this (no need to make the bridgehole an event), you only need to use the control variable and control switch commands for this.
 

Ashtonion

Classic Creator
Veteran
Joined
Jan 3, 2014
Messages
112
Reaction score
0
First Language
english
Primarily Uses
Ok, I'll try reading the tutorial, is it within these forums or not? If not please leave a link :) .
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
Follow the link in my signature, it will show you how to find the other tutorials.


And the degica blog (with only some of those tutorials) is the blog top right on the page, to the right of the support link
 

Ashtonion

Classic Creator
Veteran
Joined
Jan 3, 2014
Messages
112
Reaction score
0
First Language
english
Primarily Uses
Which category would self checking position be in? (sorry for so many of the questions)
 

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV
You might learn something from my Sokoban Puzzle tutorial. It requires the player to move certain objects onto certain tiles and when they're all correct the puzzle is solved. However, it doesn't mind WHICH object goes to WHICH tile - as long as all the tiles are covered. If you want, say, chests on three specific tiles and boulders on two specific tiles, you'd need to add a bit more detail than I've done in the tutorial, but it can still be done with the same method.
 

Ashtonion

Classic Creator
Veteran
Joined
Jan 3, 2014
Messages
112
Reaction score
0
First Language
english
Primarily Uses
You might learn something from my Sokoban Puzzle tutorial. It requires the player to move certain objects onto certain tiles and when they're all correct the puzzle is solved. However, it doesn't mind WHICH object goes to WHICH tile - as long as all the tiles are covered. If you want, say, chests on three specific tiles and boulders on two specific tiles, you'd need to add a bit more detail than I've done in the tutorial, but it can still be done with the same method.
I'll try it, link to tutorial please?
 

Wavelength

MSD Strong
Global Mod
Joined
Jul 22, 2014
Messages
5,624
Reaction score
5,104
First Language
English
Primarily Uses
RMVXA
If you just want to do something as simple as a block-sliding puzzle, the tutorial (here's a link) will be enough.

If you want to do something more freeform, and need to check an event's location (for example, a player throwing projectiles at lots of enemies), you can check an event's location using $game_map.events[26].x and $game_map.events[26].y and replace 26 with the event's ID.  Then you can check one event's location against another and run processing for those events if necessary.
 
Last edited by a moderator:

Ashtonion

Classic Creator
Veteran
Joined
Jan 3, 2014
Messages
112
Reaction score
0
First Language
english
Primarily Uses
Thanks for the script, but could you explain how to make so that when you roll a boulder into a hole it becomes a bridge? The tags are a little confusing
 

Andar

Veteran
Veteran
Joined
Mar 5, 2013
Messages
31,365
Reaction score
7,675
First Language
German
Primarily Uses
RMMV
could you explain how to make so that when you roll a boulder into a hole it becomes a bridge?
You need to use multiple pages and switches for this.
One event page is the boulder sprite and contains the code for moving, the other page is a simple bridge tile sprite, and conditioned to a self-switch.


When the code confirms that the boulder is at the position of the "hole", you control that self-switch ON and the event will turn from a boulder into a bridge.


You need to have the page with the bridge set with the correct properties of course.


If you need to change several events, then don't use self-switches but one general switch that all those events are conditioned to.


And if you don't know how to use switches, please set you own game aside for a few weeks while you work through the tutorials (see link in my signature).
 

Ashtonion

Classic Creator
Veteran
Joined
Jan 3, 2014
Messages
112
Reaction score
0
First Language
english
Primarily Uses
I know how to use switches lmao I just need help on where to put them...but I'll try what you said

Would I use variables to check the location of the event?

>>>EDIT<<<< Sorry for double posting I meant to edit my last post.
 
Last edited by a moderator:

Shaz

Veteran
Veteran
Joined
Mar 2, 2012
Messages
40,098
Reaction score
13,704
First Language
English
Primarily Uses
RMMV

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,863
Messages
1,017,053
Members
137,571
Latest member
grr
Top