Ace of Spades
Member
Hello, I was looking for a little bit of help, from someone with a little more scripting knowledge than myself. Basically, I'm looking for something that can check if the player is facing an event, or vice versa. So, as opposed to having 4 conditional branches in my event that have
I'd rather have on compressed conditional script that be something like
I'd also like to make one that checks if two events are facing each other. So instead of four huge conditional branches that looked like this
I could possibly make a simple conditional branch check
I already know how to check these things with events, but I'd really appreciate if someone could help me compress this stuff with a little bit of scripting. I would do it myself, but I'm still learning the very basics. Also know that this is for a good cause. I'll be using this to help simplify the pixel-based ABS I've been working on, so this will definitely help out the community. Thanks in advance.
Code:
$game_player.direction == 8 and $game_map.events[@event_id].y < $game_player.y
Code:
$game_player.direction == 2 and $game_map.events[@event_id].y > $game_player.y
Code:
$game_player.direction == 4 and $game_map.events[@event_id].x < $game_player.x
Code:
$game_player.direction == 6 and $game_map.events[@event_id].x > $game_player.x
I'd rather have on compressed conditional script that be something like
Code:
$game_player is facing $game_map.events[@event_id]
I'd also like to make one that checks if two events are facing each other. So instead of four huge conditional branches that looked like this
$game_player.direction == 6 and $game_map.events[@event_id].direction == 4 and $game_player.x < $game_map.events[@event_id].x
I could possibly make a simple conditional branch check
Code:
$game_player, $game_map.events[@event_id] are facing each
I already know how to check these things with events, but I'd really appreciate if someone could help me compress this stuff with a little bit of scripting. I would do it myself, but I'm still learning the very basics. Also know that this is for a good cause. I'll be using this to help simplify the pixel-based ABS I've been working on, so this will definitely help out the community. Thanks in advance.