[Completed] External Script Processing

FuzzySadist

New member
JFF Member
Nov 18, 2017
31
2
0
58
Calls an external script program with parameters, and places the return value into a usable script variable. This would allow advanced scripts without any additional scripting power in RAT itself.

Something of the nature :

CONDITION:
LAUNCH: <external.exe> {0} {1} etc
SCRIPT {return_data}

Example:
CONDITION: [STARTSWITH:!testext]
LAUNCH: [external.exe] {1} {2}
SCRIPT [
say "returns: {return_data}"
]
 
I think what you're asking for here might be two different things?

One is the ability to shell out to an external program, passing in whatever data (sure, no problem).

The second part of that is the ability to take that return data and do "something" with it... probably not a problem as well.

The third thing is, basically something like LUA support. Its been asked for before, but... RAT isn't really setup to expose the objects it needs to that way. It SHOULD be, but it isn't. Maybe on RAT 2.0 if that ever happens. =) So

I'm going to mark this request as accepted, but only for the first two (shelling to an external program, passing in data, getting data back).
 
I meant the first two. The first server manager I used did something like that... gave it a ton of power:
7DSM — Custom commands (external call)

Basically means I could write my script in any language I want, then pass back the results. The arguments would likely be the normal available RAT variables. :)

So...

NAME: What day is the next blood moon?
CONDITION: [STARTSWITH:!testext]
LAUNCH: [RATcsharpcommands.exe {gametime_day} {bloodmoon_days}]
SCRIPT [
say "The next horde night is on day {return_data}."
]