ID:180904
 
Sorry about this...

if I have an object verb eg /obj/verb/drop() and have several applicable objects, when I use it BYOND, very helpfully, automatically produces a prompt box to select the object I'm trying to make the src. My prompt box always has 'word' at the top of it. How do I change this to something different?
On 10/5/00 1:37 am Al wrote:
Sorry about this...

if I have an object verb eg /obj/verb/drop() and have several applicable objects, when I use it BYOND, very helpfully, automatically produces a prompt box to select the object I'm trying to make the src. My prompt box always has 'word' at the top of it. How do I change this to something different?

No need to be sorry! You found a little bug. The automatic verb popups should display the name of the verb by default, but a minor glitch is preventing this. It's already fixed, and I'll be uploading tonight.

To make your own descriptions, you can edit the "set desc" property as such:

obj/verb/drop()
set desc = "(an item in your inventory) Drop this item"

This will popup as:

"drop an item in your inventory"
[List of choices]
Drop this item

In other words, the text in the parentheses allows you to specify custom text for the target range (by default you'll get things like "in world", "as mob", etc), while the other text is for a general description/help.
In response to Tom H.
On 10/5/00 2:23 am Tom H. wrote:
To make your own descriptions, you can edit the "set desc" property as such:

obj/verb/drop()
set desc = "(an item in your inventory) Drop this item"

This will popup as:

"drop an item in your inventory"

I don't understand this -- and to complicate matters, my create() verb stopped working. It used to create objects:

create(O_type in typesof(/obj))
set category = "GM"
var/obj/new_object = new O_type()


Now it gives me this error instead:

Unrecognized or inaccessible verb: create/obj/weapon/pistol

What's up?
In response to Deadron
On 10/6/00 1:56 am Deadron wrote:
On 10/5/00 2:23 am Tom H. wrote:
To make your own descriptions, you can edit the "set desc" property as such:

obj/verb/drop()
set desc = "(an item in your inventory) Drop this item"

This will popup as:

"drop an item in your inventory"

I don't understand this

Text in the parenthesis refers to the "description of the targets", wheras the other text is just "general help on the verb". So in the above example, the verb will have a title of:

verb_name + verb_targets = "drop + "an item in your inventory"

and a general help text of:

"Drop this item"

-- and to complicate matters, my create() verb stopped working. It used to create objects:
create(O_type in typesof(/obj))
set category = "GM"
var/obj/new_object = new O_type()


Now it gives me this error instead:

Unrecognized or inaccessible verb: create/obj/weapon/pistol

What's up?

[Edit] .. oh, it's just a gui thing. You must be typing "create[return]", rather than "create [return]". Lazy bastard that I am, I always type "c[space][return]", which will expand out the word. I'll fix this so it works with your style right now.
In response to Tom H.
On 10/6/00 2:13 am Tom H. wrote:

.. oh, it's just a gui thing. You must be typing "create[return]", rather than "create [return]". Lazy bastard that I am, I always type "c[space][return]", which will expand out the word. I'll fix this so it works with your style right now.

Ok, patched byond_update.exe to include this fix. See how nice I am? It's probably not even worth your time to download it, but if you find it to be annoying, go for it.
In response to Tom H.
On 10/6/00 2:35 am Tom H. wrote:
On 10/6/00 2:13 am Tom H. wrote:

.. oh, it's just a gui thing. You must be typing "create[return]", rather than "create [return]". Lazy bastard that I am, I always type "c[space][return]", which will expand out the word. I'll fix this so it works with your style right now.

Ok, patched byond_update.exe to include this fix. See how nice I am? It's probably not even worth your time to download it, but if you find it to be annoying, go for it.

Yeah that was the problem -- it actually is worth my time to download the patch, because I am set in my typing ways, and this will be like stubbing my toe several times a day...

Thanks for the quick update. From reading, I still don't understand how the desc thing works (I'm being dense here) -- guess it's just time to play with it!
In response to Deadron
Thanks for the quick update. From reading, I still don't understand how the desc thing works (I'm being dense here) -- guess it's just time to play with it!

Example:

punch(mob/M)

default help: punch mob

the default in this case would be:

set desc="{mob)"

but with the line:

set desc="(a mob in the nose!)"

the help becomes: punch a mob in the nose!

Essentially, it replaces the default argument "mob" with the argument "a mob in the nose". It still works the same, but it looks different.

Example 2:

drop(obj/item,turf/loc)

default help: drop obj turf

set desc="(obj, turf)"

new help: drop an object, and put it here

set desc="(an object, and put it here)"

In this case, you replace the basic information with newer and better information that is a little more grammatically correct.
In response to Spuzzum
On 10/6/00 12:53 pm Spuzzum wrote:
Example:

punch(mob/M)

default help: punch mob

the default in this case would be:

set desc="{mob)"

but with the line:

set desc="(a mob in the nose!)"

the help becomes: punch a mob in the nose!


Thanks, this layed it out in terms even I could understand.

Now I just get to mumble about having to deal with compiler errors cause I type 'description' instead of the obviously superior 'desc'.