Author Topic: Make suffixes/prefixes link to groups rather than within them.  (Read 3193 times)

T.G

  • Guest
This not only makes more sense conceptually but also allows greater freedom in how the *fix system is utilized. And while we're at it, make prefix-/suffix-ness optional.
Commands could act as both suffixes and prefixes simultaneously which allows for even more dynamically created commands! And cool stuff like listing!


Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Make suffixes/prefixes link to groups rather than within them.
« Reply #1 on: April 16, 2017, 05:00:27 PM »
I'm not sure I understand what you're asking; Can you provide examples of how this would work in practice?

Have you looked into using dynamic command sections?

T.G

  • Guest
Re: Make suffixes/prefixes link to groups rather than within them.
« Reply #2 on: April 16, 2017, 06:43:10 PM »
Yeah that was kinda poorly explained wasn't it, course I end up doing this in the middle of the night.

Dynamic commands are for several ways to do one thing, what I want is more like one system for doing a lot of things.

I'm setting up VA for Arma III, in which you can order other units around, the units are reffered to by their number and all commands are given through keyboard shortcuts. So let's say I sent unit 6 away to go plant a bomb or something, and now I want him to rejoin the rest of the squad. The vanilla way of doing this would be (Keypresses in parenthesis): Select unit 6 (F6), Open move menu (1), Tell selected units to regroup (1).
With VA, this becomes a cool "Six, regroup" (With variations like, "return to formation" and such.)

But if I have several units that I want to doing the same thing I can assign them to teams.
Let's say unit 2 and 3 work together as driver/gunner providing support for the rest of my squad, I'll just add them both to team red so I don't have t control them individually.
The in-game commands to do this would be: Select unit 2 (F2), Select unit 3 (F3), Open assign menu (9), Assign selected units to team red (1).
I then tell them to enter the car; Select team red (Shift+F1), Get in that car (Point at car+Spacebar)

What I obviously want to do instead is say: "2, 3 join team red", "Team red, get in that car"
First problem, "Select unit X" can't be a prefix anymore, since I want to list select commands, I could make the select commands full commands but then I'd have to add pauses, at which point I might as well go back to keyboard shortcuts. I tried wildcards but then the speech recognition can no longer differentiate "two" from "too" and "to", and "four" from "for" etc.
This would be fixed if commands could act as full commands, prefixes, and suffixes at the same time but then we run into another problem; There are two commands called "Team red" , one for selecting team red to give them orders (Shift+F1) and one to select the "Team red" as an option in the "Assign" menu (9 -> 1). I can't use prefix/suffix groups because they would all need to be in the same one. (Although in this example I could just make "assign to team red" one command but what if I want to add to "Switch to team red", now I need to edit the commands for all the other colours as well.)

Now let's say that:
1. Commands can act as full commands, prefixes, and suffixes simultaneously.
2. Prefixes can be restriced to specific suffixes or groups of suffixes.

In the above example I would now have a group called "Selection", in which commands like "Two", "Three", "Team blue" etc. would be, they would be set as both prefixes and suffixes and linked to their own group (To allow for selections to be chained together.) and another group called "Orders".
The "Orders" group contain the different orders that can be given to units, like "regroup" and "assign to", all of these can work as suffixes to the commands in "Selection", some are also full commands, and some can work as prefixes to other groups of commands.

A bit long winded but hopefully that cleared things up.

EDIT: Really, the *fix system isn't very well suited for something like this to begin with, what we need is a system for chaining a sequence of commands/phrases into a sentence.
« Last Edit: April 16, 2017, 06:52:29 PM by T.G »

Pfeil

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 4759
  • RTFM
Re: Make suffixes/prefixes link to groups rather than within them.
« Reply #3 on: April 17, 2017, 08:53:04 AM »
What this seems to boil down to is the same request I've seen a number of times now: Modularity.

I can understand that you'd rather not have the same actions to accomplish the same thing, duplicated across different commands, but you're always limited in how freely you can combine phrases before the amount you need to generate becomes restrictively high.

You can't get around the fact that you'll need to duplicate phrases, and as a result duplicate actions, across different commands.
It's not workable to generate every possible variation and combination, especially when you want to string together multiple ones.


I feel you'd be better off with a subroutine system, which allows you to link together blocks of actions so that if you change one, the others change with it.


Regardless of my thoughts, it's up to Gary to decide.