Search results

  1. nworbetan

    how does sort work?

    Okay, so it looks like sorting a map with multiple keys is an exception, and using int indexed maps of records is an easy (and legal) way to keep multiple values coordinated. /me makes notes
  2. nworbetan

    how does sort work?

    Interesting. This works more or less the way I've always wanted it to: int [item, int] test; test [$item[banana], 1] = 5; test [$item[astral hot dog], 2] = 4; test [$item[elephant stinger], 3] = 3; test [$item[collapsible baton], 4] = 2; test [$item[doc's miracle cure], 5] = 1; sort test by...
  3. nworbetan

    how does sort work?

    I've ran into a couple situations where I couldn't figure out how to use sort to do what I wanted. Like this example: I've parsed all the boozes I've drank from my last X days of log files, and now booze_list contains the boozes I've drank and the number of days since the last time I drank it...
  4. nworbetan

    CanAdv -- check whether you can adventure at a given location

    Since I can probably count the number of people who are going to actually use those crazy pseudo quest step things on one finger, here's a substantially less convoluted version of numerify(): int numerify(string arg) { int max_steps = 12; matcher m_step =...
  5. nworbetan

    Daily Deed to Vamp Out with your Vampire Fangs

    I'm glad you posted the screenshot, that caught my eye and I'm really happy with the results. I wouldn't have imagined it was possible to build that thorough of a daily deed, and the way it intermeshes (damnit spell check, inermeshes is too a real word) with the script is pretty wizard. One...
  6. nworbetan

    Bug - Cannot Reproduce Nemesis quest big door password inop

    Sounds more like user error than a bug now. Sorry about that, but I do appreciate everyone pointing me in the right direction.
  7. nworbetan

    Bug - Cannot Reproduce Nemesis quest big door password inop

    I feel fine about finishing that part of the quest because I positively verified that part was still working properly. The thing that might could use some "fixing" from what I've seen is the part where the strip preferences are only set once and then never updated even when cleared manually...
  8. nworbetan

    Bug - Cannot Reproduce Nemesis quest big door password inop

    Even more bad news is that a couple of the non-duplicate strips weren't right either. I went through and manually set all of the preferences to their correct value, and the password auto-filled and was accepted by the big door. Thanks for talking me through it!
  9. nworbetan

    Bug - Cannot Reproduce Nemesis quest big door password inop

    The good news is that they are different items, and the quest is solvable. The bad news is that I thought I was being clever and set both of those two properties to "" thinking that looking at the item would fill in the right values. But both "/examine <stripnane>" in chat and clicking on the...
  10. nworbetan

    Bug - Cannot Reproduce Nemesis quest big door password inop

    > prefref strip lastPaperStrip3144 - user - now "zig-zaggy:KAZAM:sinusoidal", default "" lastPaperStrip4138 - user - now "rough:MEEP:wibbly", default "" lastPaperStrip4139 - user - now "fuzzy:CAT:careful", default "" lastPaperStrip4140 - user - now "funny:ZZZZ:rough", default ""...
  11. nworbetan

    Bug - Cannot Reproduce Nemesis quest big door password inop

    The password for the big door doesn't get auto-filled today using r11294. The last time I did the quest was the 13th, and the auto-filling worked fine then. If the debug log isn't enough detail for someone who's not at the right stage of the quest to fix it, I can copy/paste whatever html you...
  12. nworbetan

    CanAdv -- check whether you can adventure at a given location

    Both of you feel free to use it wherever, and I'll be glad I could help. It's funny, I finally noticed how redundant those "if"s (and parenthesis) were after I posted it too. :)
  13. nworbetan

    CanAdv -- check whether you can adventure at a given location

    I use a few functions to do things pretty similar to what you pointed out earlier in this thread. // arg = "stepNx" will return N * 10 + <letters a-i transmogrified into digits 1-9> int numerify(string arg) { int max_steps = 12; matcher m_step = create_matcher("^step(\\d+)([a-i]?)$"...
  14. nworbetan

    KingdomExplorer

    I don't know if this will solve all the small issues IceColdFever noticed, but it looks to me like it could, possilby. int days = 5; int [location] visited; string [int] logs = session_logs(days); foreach day in logs { print("Parsing day " + day + "..."); if (logs[day] == "") continue...
  15. nworbetan

    Save items from pvp theft

    You can add items to the line: boolean [item] pvp_unimportant = $items[tenderizing hammer, dramatic range, Queue Du Coq cocktailcrafting kit, tiny plastic bitchin' meatcar]; And that will stop them from being closeted. Capitalization isn't important, but spelling kind of is. Fuzzy matching...
  16. nworbetan

    Trying to target a specific monster in appearance_rates

    If you run that second line by itself in the gcli, it'll complain about the syntax, but this: float [monster] rate = appearance_rates(my_location()); if (rate[last_monster()] > 0) is nearly as short, and looks valid to me. disclaimer: I have no clue what the contents of appearance_rates()...
  17. nworbetan

    New Content - Implemented Way of the Surprising Fist content

    Never mind all that noise, it's working now. Thanks!
  18. nworbetan

    New Content - Implemented Way of the Surprising Fist content

    I just noticed that the +10 damage bonus and damage reduction from Master of the Surprising Fist aren't reported by modtrace. It would be nice if they did, which leads straight to my next question: Does detecting/reporting unarmed status deserve its own ash function and/or feature request?
  19. nworbetan

    Macro Aborted, couldn't find mark named "__if__10end".

    In your string everyround line, the "if mpbelow 6" is missing an endif.
  20. nworbetan

    Files and maps and arrays, oh my!

    Is your clan management script something I can find on these forums if I look? I'm curious to see a practical application of maps of records of maps of records. Also, thanks for helping me look at my situation from a couple different points of view. Simply switching from a string[19,12] to a...
Back
Top