Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Automatic Flavour Tuning

  1. #1

    Default Automatic Flavour Tuning

    I've been working on a script that takes care of tuning flavour of magic optimally for me automatically and a couple people expressed interest, so I guess I'm sharing it with the world!

    By default, it will set you to whatever element will be super effective against the most enemies in the zone, as long as no enemies in that zone will resist it. In the case of ties, it uses whatever element you have the most elemental spell damage for. If you have no elemental spell damage, and none of the enemies in the zone are elemental, it'll just set you to cold, since you still get the +10 spell damage that way!

    How to install:
    Code:
    svn checkout https://github.com/soolar/flavour/trunk/
    How to use:
    Once you have it checked out, add "call flavour.ash" as an unconditional trigger to a mood, and it'll work it's magic for you!

    How to configure:
    There's only one configurable setting at the moment, the zlib variable flavour.perfectonly. If you change it to true, you will only be automatically tuned when that flavour will be super effective against every enemy in your current zone.

    Still to come:
    • Some sort of accounting for wandering monsters, somehow?
    • Some convenient way of briefly disabling it when you want manual control, like for hobo killing.

  2. #2

    Default

    Nice.

    I have Flavour permed for this exact reason, and will install this.

  3. #3
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,268

    Default

    I'm going to have to look that over very carefully and figure out how it compares to the function I use in my between battle script!

  4. #4

    Default

    If you spot any areas for improvement, please do share!

  5. #5
    Senior Member Theraze's Avatar
    Join Date
    Mar 2010
    Posts
    8,734

    Default

    The things I see in my current (probably posted by Bale years ago) script is that it had two locations being handled specially:
    Code:
            switch(my_location()) {
            case $location[The Ancient Hobo Burial Ground]: // Everything here is immune to elemental dmg
                if(have_spirit())
                    use_skill(1, $skill[spirit of nothing]);
            case $location[Hobopolis Town Square]: // Don't interfere with Scarehobos
                return;
            }
    There was also a bit about OCRS:
    Code:
            if(my_path() == "One Crazy Random Summer")
                vulns[$element[cold]] -= 0.5;

  6. #6

    Default

    Both great additions to the script! I also added some tunings for speeding up some of walford's bucket quests.

  7. #7
    Senior Member Crowther's Avatar
    Join Date
    Nov 2006
    Posts
    1,355

    Default

    On thing I notice is the entire script is in main(). I believe that is an issue for importing it, so multiple between battle scripts can be combined. For example, BBB's main is this:
    Code:
    void main() { bbb(); }

  8. #8

    Default

    I hadn't even considered using it as a between battle script, I'd just plopped it in my mood, but that's definitely a good policy. Done!

  9. #9
    Developer
    Join Date
    Aug 2009
    Posts
    2,688

    Default

    On thing I notice is the entire script is in main(). I believe that is an issue for importing it, so multiple between battle scripts can be combined. For example, BBB's main is this:
    Code:
    void main() { bbb(); }
    Originally Posted by Crowther View Post
    More of a historical point, as now we can do things like [email protected]()

  10. #10
    Minion Bale's Avatar
    Join Date
    Jun 2008
    Posts
    13,268

    Default

    The things I see in my current (probably posted by Bale years ago) script is that it had two locations being handled specially
    Originally Posted by Theraze View Post
    Yup! That's my script which was built upon a simpler script originally posted by zarqon.
    If people like my scripts, please send me stuffed Hodgmen.
    Universal Recovery, OCD Inventory Control, CounterChecker, newLife, ChIT.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •