Howdy. I'll give you the lowdown of what I'm trying to achieve, and if there's some kind of fix then that's great, or if I'm just being an idiot and not eventing properly then let me know >.<
I'm trying to combine the titular ABS with Jet's stealth script. There's no issue with the latter, I'm just trying to put everything into context for a better understanding. Basically, I've set up an enemy using separate event pages. The enemy will only attack you if you're in its line of sight. That's all good, but that's also part of the problem.
If I'm NOT in the enemy's line of sight (and therefore not triggering the event to move on to the next page to process the enemy attacking me phase), I can attack the enemy and deal damage to it. The issue is that because it can't see me, there's no kind of reaction. I can just stand behind an enemy and clobber it to death without it turning around.
I've tried every possible enemy type in Falcao's ABS, and I thought the sensor function would suit my needs. The problem with that however is that using said function will trigger the enemy to attack if I'm x amount of tiles away from it, which doesn't really help or change anything.
My question is then, am I just missing something, or is it possible to add a few small lines to Falcao's script to make the target automatically face the player when attacked? The latter seems like what I'm going to have to ask, and I dunno if that'll be easy or not. I understand ABS scripts are usually quite complicated, and I can't even get my head around where to put such a method in, so here I am.
If there're any Pearl users who look at this at think 'huh?!' and I've simply set up the event wrong, then please let me know. Otherwise, if someone could take a look at the script and see about adding some code to make a target automatically turn to the player when attacked, that'd be great.
I'd paste the ABS script here but there's about ten separate ones and I really don't know which one deals with enemy reactions. I'll direct you to the demo instead. Also, for further clarification I'm not using the follower system, my game is completely single player.
Here is the link to the ABS.
Thank you in advance if someone can solve this one~ It could just be me missing something and if it is then please let me know.
I'm trying to combine the titular ABS with Jet's stealth script. There's no issue with the latter, I'm just trying to put everything into context for a better understanding. Basically, I've set up an enemy using separate event pages. The enemy will only attack you if you're in its line of sight. That's all good, but that's also part of the problem.
If I'm NOT in the enemy's line of sight (and therefore not triggering the event to move on to the next page to process the enemy attacking me phase), I can attack the enemy and deal damage to it. The issue is that because it can't see me, there's no kind of reaction. I can just stand behind an enemy and clobber it to death without it turning around.
I've tried every possible enemy type in Falcao's ABS, and I thought the sensor function would suit my needs. The problem with that however is that using said function will trigger the enemy to attack if I'm x amount of tiles away from it, which doesn't really help or change anything.
My question is then, am I just missing something, or is it possible to add a few small lines to Falcao's script to make the target automatically face the player when attacked? The latter seems like what I'm going to have to ask, and I dunno if that'll be easy or not. I understand ABS scripts are usually quite complicated, and I can't even get my head around where to put such a method in, so here I am.
If there're any Pearl users who look at this at think 'huh?!' and I've simply set up the event wrong, then please let me know. Otherwise, if someone could take a look at the script and see about adding some code to make a target automatically turn to the player when attacked, that'd be great.
I'd paste the ABS script here but there's about ten separate ones and I really don't know which one deals with enemy reactions. I'll direct you to the demo instead. Also, for further clarification I'm not using the follower system, my game is completely single player.
Here is the link to the ABS.
Thank you in advance if someone can solve this one~ It could just be me missing something and if it is then please let me know.