Really? I mean you already have the list, right? So you would only have to add a single switch construct that produces a value for each function that at least makes roughly sense.
Yes and no. I do have a list, but i don't know which number is associated to which functions. (for example choice is associated to 50). Determining which function is associated to which number takes time. Also the list is pretty big (there are 71 functions).
I am still not sure I understand what exactly the problem is. Can you give me an example location/NPC/topic, so I can test I myself?
Sure. For example in seyda nihyn, you can try with fargott. In the choice function in the script, try to display the value of arg0. As fargott give you 2 choices, arg0 should be 4 if I understand correctly. Also, the function wont work with "/SlSlSl" instead of "/SlSl"
Lol! Was trying to quote from your previous post and instead inserted a piece of code from the software I am working on right now (not OpenMW related).