ID:170220
 
mob
verb
wisper(msg as text)
usr << "[usr] wispered [msg]
im just wondering


No.
mob
verb
whisper(mob/M as mob in world,msg as text)
M << "[src] whispers [msg]"


STUDY from that, and don't copy and paste, and you'll get it in no time. :p
Atomic1fire wrote:
mob
verb
wisper(msg as text)
usr << "[usr] wispered [msg]
im just wondering

Nope, it's not right.

  • The message should be sent not just to usr but also to the mob you're whispering to.
  • There's no way to choose which mob you're whispering to.
  • The quotes on the text aren't closed.
  • Whisper is spelled with an H.

    Lummox JR
In response to Hell Ramen
Hell Ramen wrote:
No.
> mob
> verb
> whisper(mob/M as mob in world,msg as text)
> M << "[src] whispers [msg]"

STUDY from that, and don't copy and paste, and you'll get it in no time. :p

you probably don't need for it to be able to go over the whole world. Also, in that use, usr is best, not src.
mob
verb
whisper(mob/M as mob in oview, msg as text)
M<<"[usr] whispers [msg]"

Note: indentation is no correct in the example above, copy-paste wont work :P
In response to Jamesburrow
Jamesburrow wrote:
Hell Ramen wrote:
No.
> > mob
> > verb
> > whisper(mob/M as mob in world,msg as text)
> > M << "[src] whispers [msg]"

STUDY from that, and don't copy and paste, and you'll get it in no time. :p

you probably don't need for it to be able to go over the whole world. Also, in that use, usr is best, not src.
> mob
> verb
> whisper(mob/M as mob in oview, msg as text)
> M<<"[usr] whispers [msg]"
>

Note: indentation is no correct in the example above, copy-paste wont work :P

Usr is BEST? Src and usr are the same in verbs like that, so you must be confused.
In response to Hell Ramen
Hell Ramen wrote:
Jamesburrow wrote:
Hell Ramen wrote:
No.
> > > mob
> > > verb
> > > whisper(mob/M as mob in world,msg as text)
> > > M << "[src] whispers [msg]"

STUDY from that, and don't copy and paste, and you'll get it in no time. :p

you probably don't need for it to be able to go over the whole world. Also, in that use, usr is best, not src.
> > mob
> > verb
> > whisper(mob/M as mob in oview, msg as text)
> > M<<"[usr] whispers [msg]"
> >

Note: indentation is no correct in the example above, copy-paste wont work :P

Usr is BEST? Src and usr are the same in verbs like that, so you must be confused.

usr and src are not the same. Try calling whisper() as a proc.
In response to Nick231
Nick231 wrote:
usr and src are not the same. Try calling whisper() as a proc.

What?

That makes no sense at all. If it's a verb, why would you want to try calling it as a proc? It's a pretty simple verb, too. The only procs it needs to call are for spam control.

Lummox JR
In response to Lummox JR
I call verbs for NPCs sometimes.
In response to Lummox JR
Sorry, that was worded porrly. I was trying to point out that usr and src do indeed make a difference in verbs. If whisper() was called in a method other than the player clicking the verb in a verb-panel, usr will not necessarily by defined.

To say usr and src are the same thing will just lead to people trying to use them interchangably.
In response to Nick231
Nick231 wrote:
Sorry, that was worded porrly. I was trying to point out that usr and src do indeed make a difference in verbs. If whisper() was called in a method other than the player clicking the verb in a verb-panel, usr will not necessarily by defined.

Ah, true enough. It's not too common to call verbs as procs, but it does happen, so it's always good to keep in mind.

To say usr and src are the same thing will just lead to people trying to use them interchangably.

Indeed. Heck, people try that anyway.

Lummox JR