ID:157496
 
Yes, ive been trying to make a simpler version of changing the density of just one turf, and another person helped me, but i can get a verb to affect a var affecting a turf.
mob/var/swim_ability = 1 //They can do it a little by
//default.

turf/Ultimatewater
var/swim_difficulty = 0 //This means people, by
//default, can't swim.

Enter(mob/m)
//This makes no npcs get in.


if(istype(m) && m.client && m.swim_ability >= swim_difficulty) return ..()

//If any of the other stuff is wrong, no
//swimming for you.
return 0

mob
verb
Waterwalk()
Ultimatewater
var/swim_difficulty = 1
mob
verb
NonWaterwalk()
Ultimatewater
var/swim_difficulty = 0


Please help. this is bothering me.
Making up syntax is not how you accomplish things.

If you want to modify a specific object, then first store it in some variable (call it X) and then do X.y = z

To get a turf, use get_step() or locate() or an atom's loc variable.
I was surprised to see my nearly-two-year-old code here in (kind of) use. The problem is that you don't really know what you're doing, so I suggest reading the DM Guide before moving on.