I have been creating an RPG for the last few days, and I have a couple of issues that have been bothering me, but I am not sure how to fix it.
Basically, as this is in testing stages, I want players to be able to attack NPC enemies, but I do not want them to be able to kill other players (who are helping me test). How can I prevent players from being able to kill one another? If you need any of my code, let me know.
Secondly, when an enemy is killed, it is randomly respawned anywhere on the map. However, this includes walls. The code looks like this:
loc = locate(rand(1,50),rand(1,50),1)
Is there a way that I can change this code so that the possible placement locations exclude turf with a density of 1?
Thanks
second problem:
im not exactly sure about but while your waiting for an answer maybe say something like
ive never done something like that so thats my best guess