One of the things I try to do with the creation of my game is to automate a lot of systems so that I can work seamlessly. One of the tedious tasks is placing down some of the regions I use that allow
enemy events on Game_Map to instance Jump over an obstacle. (Just an example).
It seems I can't find a way to make a script call that will check what this event id is doing the script call and then place appropriate regions all around it. Something like this pseudocode:
Script call: RegionPlacer()
place.region(X) @ event_id.x+1
place.region(X) @ event_id.x-1
place.region(X) @ event_id.y-1
place.region(X) @ event_id.x+1
Alternatively would be finding a way for events to check if they are x/y away from and facing a certain event. But I'm thinking for that you'd have to loop through all the events on the map over and over and over. Not very efficient.
Cheers and many thanks!
enemy events on Game_Map to instance Jump over an obstacle. (Just an example).
It seems I can't find a way to make a script call that will check what this event id is doing the script call and then place appropriate regions all around it. Something like this pseudocode:
Script call: RegionPlacer()
place.region(X) @ event_id.x+1
place.region(X) @ event_id.x-1
place.region(X) @ event_id.y-1
place.region(X) @ event_id.x+1
Alternatively would be finding a way for events to check if they are x/y away from and facing a certain event. But I'm thinking for that you'd have to loop through all the events on the map over and over and over. Not very efficient.
Cheers and many thanks!