Skip to content

NEXUS: Muliple Choice Aliases Examples

Figure I'd put this out there cause it took me forever to remember how to do it. Disclaimer: I'm not a coder. These aliases are mainly how I roll. Anyway. Here's an example using:
OBLIVION CHANNEL [EMPYREAL]

alias text: ^oc(a|c|p|s|t)$
matching type: reg expression

then under actions:
execute script: 
var empyreal = {
    a: "architect",
    c: "conqueror",
    p: "progenitor",
    s: "sunderer",
    t: "traveller"}

send_command("oblivion channel " + empyreal[args[1]])

so oct does oblivion channel traveller and so forth... Can be adapted to a variety of things. Like infecting targets while hacking.

alias text: ^inf(a|f|g|h|s|)$
matching type: reg expression

execute script: 
var ices = {
    a: "antivirus",
    f: "firewall",
    g: "glitch",
    h: "honeypot",
    s: "scanner"
}

send_command("infect " + ices[args[1]])

where inff does infect firewall, infa does infect antivirus. etc...
Vote for Starmourn! Don't hurt Poffy.

Comments

  • Thank you for sharing! 
  • edited December 2018
    Have you both tried this as-is and found it to work? 

    Edit: It works.
    Character: Edon
    Race: Elgan
    Class: Engineer
  • It works, make sure it's regular expression. Did you save it? 
  • Albion said:
    It works, make sure it's regular expression. Did you save it? 
    Yeah. I got it. It was, of course, user error. The game doesn't recognize the hacking commands unless you're in a terminal so it looked like it wasn't working.
    Character: Edon
    Race: Elgan
    Class: Engineer
  • I'm using this one, it's both handy and inspiring. Thank you for sharing! I will be using this pattern for other things for sure.
    Starmourn Launch Countdown:
    https://countingdownto.com/?c=2341194
  • edited December 2018
    This is such a neat tool. I've also adapted it for the following so I don't need a whole folder just for this anymore:

    alias text: ^st(n|ne|e|se|s|sw|w|nw|)$
    matching type: reg expression

    execute script: 

    var sdir = {

        n: "north",

        ne: "northeast",

        e: "east",

        se: "southeast",

        s: "south",

        sw: "southwest",

        w: "west",

        nw: "northwest"

    }

     

    send_command("ship turn " + sdir[args[1]])


    Character: Edon
    Race: Elgan
    Class: Engineer
  • @Selador A hint there, you're overwriting a built-in alias wherein st = set target. I have a single alias for that, but it's sht. then i can suffix anything on like sht e or sht w  and I'm turning my ship. Because all the directions are built in to be listed with just a letter or two.

    so alias text: sht
    begins with

    send a command: ship turn (and then check the box that says include prefix and suffix)
    Vote for Starmourn! Don't hurt Poffy.
  • edited December 2018
    Hmmm.... That's good to know and hasn't come up yet since I haven't done any ship combat since adding that script. Thank you.

    I'm going to have to add a bunch more before I do ship combat again since I don't have any aliases for guns yet, just navigation for now.
    Character: Edon
    Race: Elgan
    Class: Engineer
  • Slight derail, when I ST ROCKHOPPER. It will automatically target a specific ID number, similar to when using TAB. Any ideas or do I need to create my own seperate targeting variable?
Sign In or Register to comment.