$arg10 and higher is broken #275


  • Defect
Open
  • OwnMakesChannel created this issue May 11, 2021

    The first Line is using:

     

    - '$text$$arg1 $arg2 $arg3 $arg4 $arg5 $arg6 $arg7 $arg8 $arg9 $arg10 $arg11 $arg12 $arg13'

     

    The second Line is using:

     

    - '$text$$multiargs'

     

     

    Every $argX higher than 9 is just the number for example 10, 11 and so on.

     

    Besides, $argX and then $multiargs is still not working on 5.7.1 for me.

  • OwnMakesChannel added a tag Defect May 11, 2021
  • ivanfromitaly posted a comment May 11, 2021

    $multiargs need to have atleast one $arg on that line, in your case $arg14 $multiargs, i guess, but i didn't tested with args over 9.

     

    For the rest i'll give a look later, it's rare that someone needs all those args in one command.

     

    Have you increased the MAX_ARGUMENTS field in config.yml yes?

     

     

    PS. Using $text$ doesn't trigger that feature with $multiargs. That works on pure runcmd commands. If you try with /say you can see that works.

    About the Args10+ just increase the limit, they works.

     


    Edited May 11, 2021
  • OwnMakesChannel posted a comment May 12, 2021

    Big thanks for the fast response. Now I can use my old command without adjusting it to just 9 args.

     

    Multiargs also works for "/say". Can you maybe make it also work for $text$? I am using it for debugging alot.

    But it is not working for %tempVariable% and I am using it alot aswell. It is not working for this line for example:

     

    - '%TempVariable%titelQuest=$arg11 $multiargs'

    #I am using 13 args here, titelQuest has to be "Die erste Prufung", but it is $arg11 (Die) and all the args beginning from $arg1

     

    I am using that many args (up to 16 in this command, maybe more later), because I am making a public roleplay server for my twitch community with a real main story, many side storys for every NPCs and a background story for every NPC. It will be done as a text adventure next to normal Quests and I am using for all that about 80-90% your MyCommand Plugin. This command is used for showing and changing the color of the Buttons in the main menu, showing the buttons for the quests at the NPC, showing the buttons for the already taken quests and some more things according for the given arguments.

     

    The character skills:

     

    Talk with the NPC-Mainmenu


    Edited May 12, 2021
  • ivanfromitaly posted a comment May 12, 2021

    I'll see if i can do something, the way how it works currently, doesn't allow me to implement that easily on other "cases" that aren't commands.


To post a comment, please login or register a new account.