The enemies in my game are represented by different events on the map, but at the moment they are all scripted and removed when you win them in the battle or re-enter the map. The enemy event itself looks like this in general, it's not parallel, movement scripted by YEP chase player plugin.
I want to make it the way, when there will be for example 10 enemy events in different places on the map. But when you enter it, only a random part of them will appear on the map. Thus, with one entry on the map there will be 7 enemy events, with the other only 2. These events should also be deleted when you defeat enemies or when you re-enter the map, that is, the point is that each time you enter the map, enemies will spawn in random places and numbers.
So far I have some results of my own, but I don't want to tell you right away because I just want to hear how you would do it. I think my results are a bit cumbersome. I used 10 individual switches and one common event.
I need a solution that uses as few common events, switches, and variables as possible. Maybe even scripts, if you can think of any. Thanks in advance.
I want to make it the way, when there will be for example 10 enemy events in different places on the map. But when you enter it, only a random part of them will appear on the map. Thus, with one entry on the map there will be 7 enemy events, with the other only 2. These events should also be deleted when you defeat enemies or when you re-enter the map, that is, the point is that each time you enter the map, enemies will spawn in random places and numbers.
So far I have some results of my own, but I don't want to tell you right away because I just want to hear how you would do it. I think my results are a bit cumbersome. I used 10 individual switches and one common event.
I need a solution that uses as few common events, switches, and variables as possible. Maybe even scripts, if you can think of any. Thanks in advance.