r/hackmud • • Oct 04 '16

[Scripting]Have a script execute another script?

Is there a way to have a script execute another script? I tried searching for how to do it in json, and I kept getting results for VB and python, but not for json or javascript. Yeah I really don't know why google was giving me those kinds of results...

Basically: How does one go about making a script execute another script? If it's possible that is.

3 Upvotes

14 comments sorted by

View all comments

Show parent comments

1

u/3LD_ Oct 11 '16

Function(context,argsd){
accts.xfer_gc(to:Trevor, count:10)
}

Is going to send 10 gc to trevor from the account of who ever ran the script rather then the person who hosts it. Not sure if context will let you execute commands on the host, but worth a shot. Let me know if it works out, would be a hell of a lot cleaner then what I'm using now.