usr.verbs += /mob/specialperson/verb
|
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?
| |
#2 Jun 6 2012, 3:37 pm
|
|
That didn't answer any of my questions.
| |
#3 Jun 6 2012, 3:43 pm
|
||
I know how to give the special person verbs. I need to know to know lets say if I had
| ||
#4 Jun 6 2012, 3:47 pm
|
||
No that will not give the player u select verbs of an owner because you need to add typesof like this
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. | ||
#5 Jun 6 2012, 4:19 pm
|
|
Now for my other question about the Profile system?
| |
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
You can display this in any way you want now - HTML in browser(), output() to a grid id or an output element, etc. | ||
#7 Jun 7 2012, 12:41 pm
|
|
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.
| |
#8 Jun 7 2012, 1:59 pm
|
||
For HTML, you would need to know the basics of HTML. You will output it using browse()
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. | ||

2nd Problem if You verbs is set up like this
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]