RPG Game Lover
- Dec 31, 2020
- Reaction score
- First Language
- Primarily Uses
I want to spawn one monster on nearby free tile RANDOMLY.
OK, here is what i did:
1, I use SRD_collision plugin to check west,north,east,south four nearby tiles
2, If it is empty , i set variable to a certain value
3, I wrote STUPID code to generate a random number on empty tiles
4, I spawn the monster by conditional branch and AABS plugin command.
yes I did it, but i think this is a very stupid way! I can feel it with my bones!
But the question is, I don't know how to do this in a DECENT/ELEGANT/NICE/NEAT way!