Hello i was wondering if anyone could help me out with a script to handle roaming monsters that would attack within a certain range if they are facing the player.
Right now i have it working fairly well by making all the monsters a parallel process event with the events doing all the work. The problem is that when i get to around 4-6 monsters it runs too slow. So i was hoping that someone might could help me out with a script that would check the name of all events on the map find ones with "monster" or something in the name. Check the distance between the monster and the player and check to see if the monster is facing the player or not. At this point if it could just trigger a self-switch in the event that it is checking. I think should speed things up quite a bit. Any help would be greatly appreciated i understand programming lingo fairly well just not ruby very well so i wouldn't mind adjusting it myself. I just need something to start from and an understanding of what needs to be done.
If someone can tell me how to copy an event page and paste it in anything else ill post the monster event i am using now.
Thanks in Advance :smile:
Right now i have it working fairly well by making all the monsters a parallel process event with the events doing all the work. The problem is that when i get to around 4-6 monsters it runs too slow. So i was hoping that someone might could help me out with a script that would check the name of all events on the map find ones with "monster" or something in the name. Check the distance between the monster and the player and check to see if the monster is facing the player or not. At this point if it could just trigger a self-switch in the event that it is checking. I think should speed things up quite a bit. Any help would be greatly appreciated i understand programming lingo fairly well just not ruby very well so i wouldn't mind adjusting it myself. I just need something to start from and an understanding of what needs to be done.
If someone can tell me how to copy an event page and paste it in anything else ill post the monster event i am using now.
Thanks in Advance :smile: