Maybe a stupid question, but I have a core variable I use: "Class" --> all my bashing stuff depends on what the class variable is.
Every single time I login to Achaea, my bashing aliases are all broken, because the 'Class' variable is missing. I have to re-add it. I thought maybe Mudlet wasn't pulling my most recent profile, but other changes and upgrades I've done are carrying over from one session to the next, except for this one variable. Any ideas?
0
Comments
E: Also, if Class is a local variable, other scripts won't be able to use it since it'll be out of scope.
That way, the variable is initialised ready to be populated before a script tries to use it.
What are you populating it with for nomal use? gmcp.Char.Status.class?
Variables don't persist through Mudlet sessions by default, you have to explicitly tell Mudlet to save them. However, for something like your class, you're better off just pulling it from GMCP. Create a script that does the following:
Results of disembowel testing | Knight limb counter | GMCP AB files
Can I ask a follow up question? I made an alias "ds" (short for DSL) which works great, but whenever the letters "ds" appear together in a line I send, it replaces the whole line with my ds alias. For example, typing HONOURS DEEDS AZJOPAS just sends the command "ds" and tries to bash. Is there a way to set it so the "ds" alias only activates when that is the only thing on the line?
^ and $ denote the start and end, respectively, of the string (or line, in the case of a perl regex type trigger pattern), which I assume is what you mean by "regex match", but that terminology is incorrect. The pattern ^ds$ matches: start of string, the character d, the character s, end of string. Or, in other words, it matches only the specific string "ds", and won't match anything with anything before or after ds.
Results of disembowel testing | Knight limb counter | GMCP AB files