Hello, i'm doing an enhanced version of CSCA Dungeon Tools (here), but i'm having some problems with event passing through another events.
In that script you have to setup your map regions where you want your tool to travel (unpassable tiles), Exemple: A pit with a switch that you have to shoot an arrow to activate. The pit will have the regions configured so your arrow can fly through it.
But there's one problem, let's say i'll make birds that fly around that pit so you have to time your shot to hit the swith. Those events will be flying over the region configured, and then the arrow will pass through then instead of colliding. I need help to fix that since i don't see where i can change that. The only method he made for checking passability is that:
I don't think there is a problem within that code but i do think i'll need to write another method to cover events prioritys within that region_ids, so any leads to how i must do that or there's already a way?
Thanks in advice.
In that script you have to setup your map regions where you want your tool to travel (unpassable tiles), Exemple: A pit with a switch that you have to shoot an arrow to activate. The pit will have the regions configured so your arrow can fly through it.
But there's one problem, let's say i'll make birds that fly around that pit so you have to time your shot to hit the swith. Those events will be flying over the region configured, and then the arrow will pass through then instead of colliding. I need help to fix that since i don't see where i can change that. The only method he made for checking passability is that:
Code:
def csca_check_through
csca_get_event
d = @csca_event.direction
if (region_id(@csca_event.x, @csca_event.y) == REGION_ID1) ||
(d == 2 && region_id(@csca_event.x, @csca_event.y) == REGION_ID2) ||
(d == 4 && region_id(@csca_event.x, @csca_event.y) == REGION_ID3) ||
(d == 6 && region_id(@csca_event.x, @csca_event.y) == REGION_ID4) ||
(d == 8 && region_id(@csca_event.x, @csca_event.y) == REGION_ID5) ||
((d == 8 || d == 4) && region_id(@csca_event.x, @csca_event.y) == REGION_ID6) ||
((d == 8 || d == 6) && region_id(@csca_event.x, @csca_event.y) == REGION_ID7) ||
((d == 2 || d == 4) && region_id(@csca_event.x, @csca_event.y) == REGION_ID8) ||
((d == 2 || d == 6) && region_id(@csca_event.x, @csca_event.y) == REGION_ID9) ||
((d == 2 || d == 8) && region_id(@csca_event.x, @csca_event.y) == REGION_ID10) ||
((d == 4 || d == 6) && region_id(@csca_event.x, @csca_event.y) == REGION_ID11) ||
((d == 4 || d == 6 || d == 8) && region_id(@csca_event.x, @csca_event.y) == REGION_ID12) ||
((d == 4 || d == 6 || d == 2) && region_id(@csca_event.x, @csca_event.y) == REGION_ID13) ||
((d == 2 || d == 8 || d == 4) && region_id(@csca_event.x, @csca_event.y) == REGION_ID14) ||
((d == 2 || d == 8 || d == 6) && region_id(@csca_event.x, @csca_event.y) == REGION_ID15) ||
@hookshot_reverse_dir == true
@csca_event.csca_change_through(true)
else
@csca_event.csca_change_through(false)
end
end
Thanks in advice.