PDA

View Full Version : [2.50.x] Return name of script (type, slot)



ZoriaRPG
05-31-2015, 05:10 PM
This one should be easy, I'd think, to add:

int ScriptName(int type, int slot)

Returns the name of a script in a given slot, of a given script type. That would be useful for TraceS(), and to make functions to show the names of running scripts during play, for testing purposes. It would need to return it as a string though, which is the tricky part, but I know that the console reports this stuff, so it should be possible to pass it through to the user-interface.