on my game i have a problem with monsters walking into the towns.
game is like you walk out of town and you see the house. but monsters are getting in how can i make it so even if they step on the house they do not enter it?!?!?
ID:261244
![]() Nov 12 2001, 11:15 am
|
|
DBGT Z wrote:
on my game i have a problem with monsters walking into the towns. You set something up under the monster, if they hit that turf, then density = 1, that way it wouldn't allow anything to enter it. But if not setup under the monsters, like players, then density = 0 allowing them to pass through. LJR |
Foomer wrote:
var/turf/nomonster/Enter(mob/M) Been a while? =) turf/nomonster/Enter(mob/M) if(istype(M,/mob/monster/whatever)) return 0 else return ..() |
Spuzzum i tried the code.
except my is turf/nomonster/Enter(mob/M) if(istype(M,/mob/evil/Dragon)) return 0 else return ..() didnt work the monsters still enterd the town. |
DBGT Z wrote:
Spuzzum i tried the code. You have to set the icon to something, then place the turf on the map before this code will work. |
im sorta new at this enter town thing sorta lik ehow DWO is.
so im comfused if you have the time ONLY if you do. can you explain step by step? if you do thanks ^_^ |
Step by Step
1. Make a turf that uses the code that was given to you. 2. Place that turf on the town borders, this will prevent monsters from passing the borders. Another way to do this. turf/town_border |
well it warps them away for sure, and when we " the people" step on it.
away we go to lol how i fix that? |
Are you using multiple maps? If you are use the code I gave you just change the 1,1,1 to the location you want them to go to.
If not use this code. turf/no_monsters |
FIREking wrote:
isnt that a snippet from somewhere? Uh, I was correcting Foomer's code. =| |
FIREking wrote:
i know you dont like me spuzzum, at least ive heard. Beg your pardon? I don't dislike you. Never have. You annoy me at times, but I think you're on the level. |
if(istype(M,mob/monster/whatever))
return