Ok first off here is the code:
/turf/teleports/TownBlock
icon=""
Enter()
if(usr.level>=14)
usr.loc=locate (15,59,1)
else
usr<<"Sorry You are to weak to go out in the wild!
return
the code compiles shows no bugs,but when im at level 14 and i go to go into the turf to get to the other side i get this run time error:
runtime error: type mismatch
proc name: Enter (/turf/teleports/TownBlock/Enter)
usr: \[Master GM] Vash (/mob/You/Player)
src: TownBlock (15,58,1) (/turf/teleports/TownBlock)
call stack:
TownBlock (15,58,1) (/turf/teleports/TownBlock): Enter(\[Master GM] Vash (/mob/You/Player))
\[Master GM] Vash (/mob/You/Player): Move(TownBlock (15,58,1) (/turf/teleports/TownBlock), 1)
\[Master GM] Vash (/mob/You/Player): Move(TownBlock (15,58,1) (/turf/teleports/TownBlock), 1)
I dont have any clue whats wrong with this could someone please help me? Id apreciate it.
ID:267974
Jan 18 2004, 7:41 am (Edited on Jan 18 2004, 7:47 am)
|
|
In response to Unknown Person
|
|
Unknown Person wrote:
Vash_616 wrote: Thank You So Much :) |
I see that you are trying to make a town block area. It looks all wrong, and you shouldn't put usr in moving procedures like Enter or Exit. I think you are trying to do something like this:
turf/teleport/blocker
Enter(atom/movable/A)
if(ismob(A)) // if it is a mob..
var/mob/M=A
if(M.level >= 14) // if you are level 14 and up..
M << "You venture into the wilderness!"
return 1 // you are able to enter the area
else
M << "You are not strong enough to go here!"
return 0 // blocks entrance
return 1 // if it isn't a mob, it can enter without any exceptions