The unresolvedcommandhandler attribute and params

Richard Headkid
21 May 2018, 18:51

From HandleSingleCommand:

if (HasScript(game, "unresolvedcommandhandler")) {
      params = NewDictionary()
      dictionary add (params, "command", command)
      do (game, "unresolvedcommandhandler", params)
    }

How do I access params from the script?

I even tried msg(params), and the script knows not of its existence.


mrangel
21 May 2018, 20:13

The elements of the dictionary become local variables. In this case, a single variable command.


K.V.
21 May 2018, 22:12

Thank you!!!


I think I tried everything BUT command. (I even tried DictionaryItem(params, "command")!!!)