ID:801064
 
(See the best response by GhostAnime.)
Problem description: I want to know how to create profiles that pop up in a window. The command would be like view profile. I see it used in many games to display profiles of their characters. Also does doing something like this work for giving a mob all the verbs a specialperson has?
usr.verbs += /mob/specialperson/verb


Race Problem:
turf/LoginStuff
Race
icon_state="Race"
layer=999
Click()
switch(alert("Information: Race ?","","Yes Please","No Thanks"))
if("Yes Please")
usr<<"This Unique Race is The Fastest on the planet."
return
if("No Thanks") return

2nd Problem if You verbs is set up like this
mob/specialperson/verb
Boot()
//Code
Ban()
//Code
Give()
//Code
//If You Have it set like this is will give the player
//in this case an Boot verb, Ban verb, And a Give verb

Then Yes that is how you give a person in your case "specialperson" verbs

If I Helped You Feel Free To Vote For My Response [Top Right,Orange Bar]
That didn't answer any of my questions.
I know how to give the special person verbs. I need to know to know lets say if I had
mob
Owner
Add_Owner(mob/M in world)
usr.verbs += /mob/Owner/verb
Will that give the player I select all the verbs of an Owner? As for the answer to my other question. I didn't ask anything about Race. I'm asking how to create an ingame player profile system. Like used in Charmed: Rebirth of Magic, Universe of Comics, and many other games. I was not asking about how to use the Click proc on an icon to do something.
No that will not give the player u select verbs of an owner because you need to add typesof like this
M.verbs += typesof(/mob/Owner/verb)

So That it gives the player all Owner verbs and as for you using usr that is wrong because you and trying to give M the verbs, and usr already has them in your case.
Now for my other question about the Profile system?
Best response
I assume that the profile system you want to display shows the person's name, rank, stats, etc.?

It's all rather simple if you understand the difference of the following two:

usr = the /mob which ultimately called the procedure (verb is a type of procedure - a pseudo one if I recall correctly).
In verbs, usr is the person who - well, clicked the verb.
In other procedures, this is often not defined (such as in movement procs like Entered()) hence why people tell you not to use usr as it is not guaranteed to be defined and will lead to runtime error.

src = the source of the proc... that is the object that contains it (so it is not necessarily the person holding it).

To help clarify this, in the snippet I will assign the usr and src to a differently named variable - though note you can use usr and src directly
mob/Player
verb
View_Profile() // Self explanatory
set src in oview(1) // Only people beside the person can call this verb and the person itself cannot see it (due to oview() used, not view())
var/mob
Viewer = usr // The person who called the verb
VIP = src // VIP = the person of interest who you want to see the stats of - so the person holding this verb

Viewer << "You are viewing [VIP.name]'s stats!"


You can display this in any way you want now - HTML in browser(), output() to a grid id or an output element, etc.
I want people to also be able to edit them. Yes, I would want it displayed in a HTML pop-up window. I'm still not very clear on how the HTML would fit in here.
For HTML, you would need to know the basics of HTML. You will output it using browse()
Viewer << browse(HTML, See Ref for this argument)


If you are planning to make this editable fields through the HTML, you will need to learn about Topic().

The Topic() will be the trickiest one to learn but very rewarding once you get it. Read the DM reference and tutorials that may be available.
In response to GhostAnime (#8)
Yea i recently learned about Topic's Myself there very promising :P