Jump to content

Magus

Modders
  • Posts

    312
  • Joined

Posts posted by Magus

  1. The inability to isolate it says enough.

    If you can't build a case from scratch then butcher your mod instead. Throw away all other components, then mechanically cut unrelated code pieces from this component, testing each time, until you actually arrive at a minimal example where it still happens.

    Then look at what remains, and if you still can't figure it out, share the full code (branch on github or something).

  2. And effects would only wear off once too, don't see how that's relevant.

    Although coming to think of it, fatique itself is a better indicator. It makes sense for the party to rest when some characters are tired, even if it hasn't been a full day, and/or spells are not depleted.

    But then giving it some more thought, maybe it's one of those ideas that sound nice in theory, but in practice aren't so great. Supposedly it would be cool to have fresh, rested party after travel, but what does it mean in terms of gameplay? Almost entirely removing outdoor rest from BG1, since one rest is enough to cover an area. And BG1 is mostly outdoor. Too much towards casualization for my taste.

    I have a few tweaks of my own that I thought would be so great when I was writing them, but some years later, I find myself skipping them.

    • Technically, you can come out on the other side of the dungeon. Not sure if that happens in original games at least, my memories are vague. Underdark, SoD starting dungeon? Isn't the shadow dragon area replaced after its defeat?
    • Various mod added content may not add areas to worldmap, and induce travel by other means.
    • Fatique can go up and down with various spells and effects, which may wear off before or after script block is run.
    • Pretty sure there's a mod that allows teleport to known areas.

    Have fun!

  3. Reset it, something like

    // pseudo
    
    IF
      GlobalTimerExpired("mytimer", "GLOBAL")
    THEN
      RESPONSE #1
        SetGlobalTimer("mytimer", "GLOBAL", 24h)
        // full rest
    END
    IF 
      True()
    THEN
      RESPONSE #1
        SetGlobalTimer("mytimer", "GLOBAL", 24h)
    	Continue()
    END

     

  4. Ooh, drama. It's right there on wikipedia. Seriously, though, cognitive distortions work even when people are aware of them.

    // nerd mode off

    As for mitigating kensai, "ken" stands for "sword", not dagger nor axe. I think a reasonable lore-friendly tweak would be to limit kensai to 2 pips in non-sword specialities.

    Anyway, archers are still more versatile with their variety of arrows.

  5. I believe it is a good practice. Extra checks result in better code quality overall.

    You can suppress the warning with silent option.

    INT_VAR silent to whether the function should suppress warnings when no effects were altered. This option also suppresses the verbose option (default is 0).

    Or explicitly check the spell beforehand for matching effects.

  6. 5 hours ago, Guest Morgoth said:

    @CamDawgI remember you planned or thought (?) to change the dialogue style of cromwell

    I think @Magushad the same idea. Are you still considering it or...?

    It's still on to-do list, like last year, and year before...

    Anthology occasionally re-implements and expands this or that component that's was in TnT (like unique icons for quest items),  so taking the lazy approach for now :D.

  7. 22 minutes ago, suy said:

    But do you have code completion, validation and so on on the language server for BAF or BAF+jinja2? I definitely have to check it out by myself, but I just don't use VS Code and I can't switch so easily.

    Switch from what, notepad++? Or do you write BAF in some IDE that has no support for it at all? :)

    Yes, MLS has some support for BAF. It's very basic, but better than nothing.

    If and when there's some consensus about templating for weidu (which preferably shouldn't be limited to BAF), then extending MLS for supporting it might be considered.

  8. Well, it's probably a no-brainer for a c++ programmer, but as for me, I don't find the syntax too intuitive. My jinja2 example above seems much clearer for casual reader.

    Also not sure if I like the logic-less approach, could be too limiting for this case.

    Of course, there's no reason why diffferent engines can't be used. Or even combined. But highlighting and intellisense become a bitch in that case.

    In any case, I wouldn't go for hardcoding snippets. Rather, I'd publish a library to let anyone who want to use it include it.

×
×
  • Create New...