Ido-f
Member
Is there a way to get the number of arguments a script expects without entering it and using argument_count?
I'm working on a stack machine (mainly to execute scripts through different game steps without using alarms) and getting that information would help with handling the scripts arguments without having custom code for it in each script (which probably means code duplication).
Other elegant ways to achieve the same purpose are also welcome.
Edit: thinking about it more, the stack machine thing isn't worth it probably. Leaving the thread here because the question is kind of interesting by itself.
Other elegant ways to achieve the same purpose are also welcome.
Edit: thinking about it more, the stack machine thing isn't worth it probably. Leaving the thread here because the question is kind of interesting by itself.
Last edited: