(XP) event collision by terrain tags

kaigames

Veteran
Veteran
Joined
Feb 8, 2019
Messages
38
Reaction score
4
First Language
Portuguese.BR
Primarily Uses
RMXP
hello sorry for my english .... in rpg maker it is possible to make conditions by calling scripts

I actually did with the character colliding with a terrain:

$ game_player.terrain_tag == 0

with 0 being the desired terrain number.

but when trying to do this with events does not work. events do not react to land

I tried to exchange the $ game_player for $ game_event but it did not work well ,,,,

is there a way to fix or a script that can fix this? desde já agradeço
 

DerVVulfman

Resident Werewolf
Veteran
Joined
Jun 26, 2012
Messages
315
Reaction score
155
First Language
English
Primarily Uses
RMXP
I made a simple map and changed the sandy tile's terrain tag to 1. And then, I drew a strip of the sandy tiles onto the map. After that, I made an event that walked towards the sandy tile.

So far, simple enough. Right?

Okay, now here's the magic part.......

I edited the event by adding a script call:
Code:
x = $game_map.events[@event_id].x
y = $game_map.events[@event_id].y
if $game_map.terrain_tag(x,y) == 1
  p 'Hey, I touched it!'
end
And then, I set the event to run by way of a 'parallel process', so it continually runs this check.

This is a very simple test run. But it will bring up a message all the time the event is over the sandy tiles.

:D Funny. You can have a @event_id value in a script call, and it recognizes the ID of the event using it! For over ten years, I never tried that.
 

kaigames

Veteran
Veteran
Joined
Feb 8, 2019
Messages
38
Reaction score
4
First Language
Portuguese.BR
Primarily Uses
RMXP
:thumbsup-left: THANK YOU VERY MUCH!!!!
 

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

Latest Threads

Latest Posts

Latest Profile Posts

How many parameters is 'too many'??
Yay, now back in action Happy Christmas time, coming back!






Back in action to develop the indie game that has been long overdue... Final Fallacy. A game that keeps on giving! The development never ends as the developer thinks to be the smart cookie by coming back and beginning by saying... "Oh bother, this indie game has been long overdue..." How could one resist such? No-one c
So I was playing with filters and this looked interesting...

Versus the normal look...

Kind of gives a very different feel. :LZSexcite:
To whom ever person or persons who re-did the DS/DS+ asset packs for MV (as in, they are all 48x48, and not just x2 the pixel scale) .... THANK-YOU!!!!!!!!! XwwwwX

Forum statistics

Threads
105,849
Messages
1,016,977
Members
137,563
Latest member
cexojow
Top