ID:168041
 
how in the hell do you make a lvl barrier. where if the mob isnt the lvl lets say 50 then it cant get in if its over it just walks in? i know area and i got some coding for it
    Lvl50barrier
Entered()
if(usr.level >= 50)
src << "You got through the barrier with no problem."

else
src << "You may not enter! You don't have the skill yet."
turf/Barrier/Enter(mob/a)
if(ismob(a))
if(a.level>=50) return ..()
else return 0
In response to Artemio
didnt work, doesnt it have to be an area?
In response to KamuraiKin
There's no reason for it not to work, although if your mob's level var is greater than or equal to 50, it'll let the mob pass.

Here, try this and tell me what it says.

turf/Barrier/Enter(mob/a)
if(ismob(a))
a<<"You're a mob!"
if(a.level>=50)
a<<"Your level is above or equal to 50, so now the parent proc of Enter() will be called to determine if you can pass or not!"
return ..()
else
a<<"You aren't the required level to pass! You need [50-a.level] more levels to pass."
return 0
else a<<"You are not a mob."
In response to Artemio
k that one worked