In response to Madjarjarbinks
Ah, I just saw your revised post:
atom
proc/Bumped(atom/A)
world<<"Ow.." //THIS DOESN'T SHOW WHEN I BUMP THE SIGN.
return 1
movable/Bump(atom/A)
..() //calls the normal Bump() information on src (src=bumper)
A.Bumped(src) //Calls A's Bumped() after src.Bump() is finished doing whatever it is doing.


Note that I showed the debug message under the Bumped() of the object and NOT under the atom/proc/Bumped()..

The atom/proc/Bumped() is overwritten thus it won't show it so please, put the debug message as I showed you in [link] (copy/paste it in and show me what the debug message says)

Note that the snippet in the ID shown is under obj/Sign NOT atom/proc

- GhostAnime
In response to GhostAnime
That's what I already did. I probably forgot to show the sign code. >.<


    Sign
icon='Madjarjarbinks.dmi'
icon_state="afk"
density=1
Bumped(mob/character)
character<<browse(mess,"window=Sign")
world<<"\red Test:[character.name] bumped in to the sign. The sign's message is [mess]."


[EDIT]
I see, I added the debug after I did the latest code I sent before this one. But, still nothing.
In response to Madjarjarbinks
So, does it show that message? ("Test: ....") o not? If so, what is the exact thing it outPutted.

- GhostAnime
In response to GhostAnime
Right.
In response to Madjarjarbinks
Er.. what do you mean by right? There was no right/wrong question... the question is does it show or does it not?

If it does not show, I don't know what the problem could be as it works for me :/ But in case, make the default mess message be something rather than null:
obj/var/mess="Test"


- GhostAnime
In response to GhostAnime
It doesn't work for me, unless I did something wrong.
In response to Madjarjarbinks
try using a verb much easier.

here is a way to do this.
var/const/Messy_Mess = {"
<HTML><HEAD>
</HEAD>
Put all the Html in the poster here
</HTML>"}



obj
Sign
icon='Madjarjarbinks.dmi'
icon_state="afk"
density=1
Bumped(mob/character)
character << browse(Messy_Mess ,"Window=Sign,size=298x300")


try this not sure it may work with bump but it should.
if it dosent work use a verb.

-Miran94

In response to Miran94
That's not what he wants. Also, it isn't 'much easier'. :O

Madjarjarbinks, it'd do you good to read the DM Guide.
In response to Vegetassj9
I dunno if anyones mentioned this before Madjar but if your trying to make the sign display that message when its bumped into by a character I think you need to change it a bit.

You have made it so that when the sign bumps a character it displays a message, you either wanna change that around or use Click() or DblClick() in place of Bump()
The problem is simple. obj/Sign/Bump() is NEVER called because the sign isn't BUMPing into anyone. The character is bumping into the sign, so the code has to go under the mob. (This I've tested and it works fine)

obj
var
mess = "This is a sign" //Just a test message
Sign
icon='Madjarjarbinks.dmi'
icon_state="afk"
density=1
mob
Bump(obj/O)
if(istype(O,/obj/Sign))
src << browse(O.mess,"window=Sign")
In response to VcentG
Ginseng and VcentG, it's fun to repeat what has already been stated, huh?
In response to VcentG
Ginny, that didn't work.
In response to Madjarjarbinks
...Because you need to read the DM Guide and learn to code properly. You've been told a hundred times now what your problem is and what you should do instead. There's not much more we can do now, especially since you keep saying "it doesn't work" without posting your code so we can see if you had a new, different problem, or perhaps didn't fix the mentioend one properly.
In response to Kaioken
sure I guess, but I tested what ghost anime and some others had posted and theirs didn't work, the one I posted worked fine =P. I'd say if that exact code didn't work, try putting it in a new environment. One time I had coded something that worked perfectly, I just copied and pasted all the coding into something new and it worked fine. Didn't know what the problem was there but meh.

But anyway, repeating is fun, its like making a chorus of a song. That repeats and its (usually) the best part of the song.
In response to VcentG
Vcent, I found out my problem. Yours works perfectly, but I had to do this.

mob
character
Bump(obj/O)
if(istype(O,/obj/Sign))
src << browse(O.mess,"window=Sign")


I forgot that my mob type was /mob/character.
Page: 1 2