ID:173068
 
How do I make an object on a map, that only the user can see and click on for something to happen?
MartialArtistAbu wrote:
How do I make an object on a map, that only the user can see and click on for something to happen?

First, you have to be clearer on what you mean by "the user". Actually, just stop using that phrase. It's going to make you slip up and put usr in someplace it doesn't belong.

But most importantly, there is no "the" here. Which player?

To make an image only a certain player can see, use image(). When the image is clicked, its location (the object or turf it attaches to; you could just make a blank object with no icon, maybe invisible) is also clicked.

Lummox JR
In response to Lummox JR
By "the user" I did mean usr though.. And I mean like... How can I make an object that only one certain person can see, and no one else can, unless I allow them to? (I have bad grammer ^^;)

"To make an image only a certain player can see, use image(). When the image is clicked, its location (the object or turf it attaches to; you could just make a blank object with no icon, maybe invisible) is also clicked."

And I don't get that @_@ too complicated for me or something.


Er, like in the games, where there are buttons on the top or side, that you click and makes you talk or punch or quit or whatever
In response to MartialArtistAbu
MartialArtistAbu wrote:
By "the user" I did mean usr though..

Exactly. But they're both wrong. By getting into the mindset of thinking "the user" is a valid phrase in DM, you end up abusing usr.

What you really meant, or should have meant, was "a player".

And I mean like... How can I make an object that only one certain person can see, and no one else can, unless I allow them to? (I have bad grammer ^^;)

"To make an image only a certain player can see, use image(). When the image is clicked, its location (the object or turf it attaches to; you could just make a blank object with no icon, maybe invisible) is also clicked."

And I don't get that @_@ too complicated for me or something.

Then start by looking up image() in the reference and move from there. There are also demos that use them.

Er, like in the games, where there are buttons on the top or side, that you click and makes you talk or punch or quit or whatever

That wouldn't be on the map, then; it's a screen object, independent of the map, and you'd use something different for that. Look up screen_loc.

Lummox JR
In response to Lummox JR
Okay I got everything like how I wanted..

Now if I make it so when you click on an icon on the top of the screen, it makes a user do whatever I want, to a MOB that's near the user? Like if I made it so when you click it, the (or a I guess) user punches a MOB that's near him?

*edit* nevermind fixed it ^_^