Read-only archive of the Armageddon Games Forums Archive (2000–2026) · About this archive

[2.50.x] Return name of script (type, slot)

0 replies · 1,082 views · Started 31 May 2015

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.