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.
ID:157496
![]() Feb 26 2010, 9:41 pm
|
|
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.