Duskers

Duskers

View Stats:
martosss Mar 29, 2023 @ 10:54am
remove letters from commands
say we have a command like
run = teleport $x1 $r1;"

Now to use that command I have to write "run 2 r2".
However, the game already expects a drone argument followed by a room argument, so why are you forcing us to write "2 r2"? Can't we instead write just "2 2" and have the whole command be "run 2 2"?

Not having to type d and r would save some time, especially if I have to constantly write commands like that.

Problem 1:
Multiple optional arguments that are put in brackets can confuse the game as to which bracketed argument it should use... but I think that sacrifice is worth it, because we're generally forced to use a lot of letters that can be omitted since the game expects us to input a drone or room number for most commands.

Potential solution 1:
  • counting the number of input arguments
  • - if the command expects from 2 to 4 arguments and I input 3 arguments, then it takes the 1st optional argument and fills it up, along with the 2 compulsory arguments.
  • - if the command expects from 2 to 6 arguments and I input 4, it takes the 2 compulsory and the first 2 optional and uses those.

I think this approach has the potential to optimize the average size of commands that we use.
Last edited by martosss; Mar 29, 2023 @ 9:52pm
< >
Showing 1-5 of 5 comments
martosss Mar 29, 2023 @ 11:12am 
A potential problem that doesn't have an easy solution would be something like
op= open ($r1) ($r2) ($r3) ($r4) ($r5) ($r6) ($r7) ($r8) ($r9) ($d1) ($d2) ($d3) ($d4) ($d5) ($d6) ($d7) ($d8) ($d9);
Here if we type "op 2 5 11 3" the game can't easily tell whether we want to open rooms or doors ... so if we count arguments the game would always pick rooms ... so a user might have to change that command to ... say opr and opd for rooms and doors respectively.

Another potential solution would be to have a default setting, say always use doors unless specifically specified that we want a room... so if a user write "op 2 3 4" the command would open doors 2 3 4, but if the user writes "op 2 3 r4", then the last argument would be forced into a room argument.
LB Apr 1, 2023 @ 9:46am 
Originally posted by martosss:
However, the game already expects a drone argument followed by a room argument, so why are you forcing us to write "2 r2"?
This is not true. The order of arguments does not matter, unless there are multiple arguments of the same type, in which case the order only matters within each type. Your alias works the same as `run 2 r2` and `run r2 2`.
martosss Apr 1, 2023 @ 10:28am 
Originally posted by LB:
Originally posted by martosss:
However, the game already expects a drone argument followed by a room argument, so why are you forcing us to write "2 r2"?
This is not true. The order of arguments does not matter, unless there are multiple arguments of the same type, in which case the order only matters within each type. Your alias works the same as `run 2 r2` and `run r2 2`.
My point is that I only want to write "run 2 2" without any r or d, only giving the relevant number without specifying door or room, because the command should already expect a room or door argument.
Zexel Apr 11, 2023 @ 9:41am 
Originally posted by martosss:
say we have a command like
run = teleport $x1 $r1;"

Now to use that command I have to write "run 2 r2".
However, the game already expects a drone argument followed by a room argument, so why are you forcing us to write "2 r2"? Can't we instead write just "2 2" and have the whole command be "run 2 2"?

Not having to type d and r would save some time, especially if I have to constantly write commands like that.

Coming from a normie, non-coding background perspective, it's to provide the player with a sense of "coding". The extra time it takes to type all that in reinforces that feeling.

Your proposal here is the equivalent of giving a person a technically complete meal that's tasteless and bland, while what we get is getting a flavourful meal which takes a bit longer to prepare and cook.
Last edited by Zexel; Apr 11, 2023 @ 9:41am
martosss Apr 12, 2023 @ 12:27pm 
Originally posted by Kalsonic:
Originally posted by martosss:
say we have a command like
run = teleport $x1 $r1;"

Now to use that command I have to write "run 2 r2".
However, the game already expects a drone argument followed by a room argument, so why are you forcing us to write "2 r2"? Can't we instead write just "2 2" and have the whole command be "run 2 2"?

Not having to type d and r would save some time, especially if I have to constantly write commands like that.

Coming from a normie, non-coding background perspective, it's to provide the player with a sense of "coding". The extra time it takes to type all that in reinforces that feeling.

Your proposal here is the equivalent of giving a person a technically complete meal that's tasteless and bland, while what we get is getting a flavourful meal which takes a bit longer to prepare and cook.

If you don't use the alias it wouldn't matter for you anyways. And if you want to give the whole name that's fine too. All I'm asking for is the option to skip the r and d letters(and enforce strict order for parameter input).

You don't need coding background to understand that less input means easier gameplay, which should make the game feel better.
< >
Showing 1-5 of 5 comments
Per page: 1530 50