ID:133154
 
Recently, I was struck by one of BYOND's limitations: you cannot pass an argument to a verb without it being declared, unlike a proc. Would it be possible to make this more flexible? Declaring all my vars and then carefully passing what I want is not exactly simple on the organization front.
You can make a verb more flexible by using an argument "as command_text". That allows you to take over the parsing.

Lummox JR
In response to Lummox JR
Ah, thanks.


EDIT: How and where would I pass it? The command is currently:
Train-Response "as command_text" "A"
In response to Jeff8500
Jeff8500 wrote:
Ah, thanks.


EDIT: How and where would I pass it? The command is currently:
> Train-Response "as command_text" "A"
>


Uh, not exactly what I meant. I meant give your verb an argument with "as command_text" as a clause.

Lummox JR
In response to Lummox JR
Oh, thanks (again!), I originally thought you meant pass it as an arg.