ID:179807
 
Here's my bump code (thx to one of Shadowdark's posts) :

mob/Bump(O)
..()
if(isturf(O))
O:Bumped(src)

turf/proc/Bumped(O)

turf/Sign/Bumped(O)
O << "Hello"

It works, but im having trouble making a second message for the same kind of turf. If i have two turfs called 'Sign.dmi'
and they look the same, how do i put a different message on each ? Maybe with an icon_state ?

Perhaps try making /turf/sign a group, instead of a single turf... Then you could do something like:


/turf/sign/hello
icon = 'sign.dmi'
Bumped(O)
O << "Hello"

/turf/sign/roadsign
icon = 'sign.dmi'
Bumped(O)
O << "East to Bumstown North to The Big City"

or whatever...

you should get the idea...
Change the Sign Bumped proc slightly:

turf/Sign/Bumped(O)
O << "The sign reads: [src.desc]"

then just use the instance editor on your map to change what the sign says by editing desc.
In response to Shadowdarke
That would be good too... Maybe I should leave question answering to the professionals! hee hee hee... for now!
In response to Xooxer
there's nothing wrong with your suggestion either. There are always several way to do things :)
In response to Shadowdarke
Yes, but your's seems so much more eloquent... (*sp?)
In response to Xooxer
Yes, but your's seems so much more eloquent... (*sp?)

"Eloquent" is right, but "yours" has no apostrophe. ;-)
In response to Spuzzum
It's always the little things that get you in the end...