ID:169182
 
Is it possible to do something such as a verb which would allow you to add raw commands, maybe something like:
mob/GM
verb
RawCommand(T as text)
set category = "Admin"
[T]
RawCommandMob(mob/M in world,T as text)
set category = "Admin"
M.[T]


Would that work? I haven't tested because I'm afraid it could cause a few hundred errors. Anyway, let me know if it would work or let me know if it wouldn't and point me in the right direction.
You can't run new source code directly like that however with call(http://www.byond.com/docs/ref/info.html#/proc/call) you can dynamically pick procs to run.
Century0 wrote:
Is it possible to do something such as a verb which would allow you to add raw commands, maybe something like:
> mob/GM
> verb
> RawCommand(T as text)
> set category = "Admin"
> [T]
> RawCommandMob(mob/M in world,T as text)
> set category = "Admin"
> M.[T]
>

Would that work? I haven't tested because I'm afraid it could cause a few hundred errors. Anyway, let me know if it would work or let me know if it wouldn't and point me in the right direction.

There is no way that would cause afew hundred errors so test it. I am having trouble understanding what you're trying to do, what you have now really won't do anything, perhaps you should give us more indepth on what you're trying to do?

:)

~Text
Git-R-Done
In response to Texter
Basically, something that I could run on something like a mob to give them verbs, such as an input and I put in typesof(/mob/GM/verb) and it would give them those verbs.

~Century0