dr-scripts icon indicating copy to clipboard operation
dr-scripts copied to clipboard

[script][crossing-training] - Using research to train does not work

Open asechrest opened this issue 2 years ago • 4 comments

Reported by RalthasDR in Discord.

When using crossing-training, with yaml setting use_research: true, the script calls Gauge Flow with 0 mana, which fails. This is because it hard-codes the spell cast and feeds in an incomplete hash that doesn't have the mana specified:

until DRSpells.active_spells['Gauge Flow'] > 20
      cast_spell({ 'abbrev' => 'GAF' }, nil)
      check_nerves
      pause 2
    end

asechrest avatar Jun 18 '22 16:06 asechrest

until DRCA.cast_spell?(get_data('spells').spell_data['Gauge Flow'], @settings) end

Raykyn55 avatar Jun 18 '22 17:06 Raykyn55

until DRCA.cast_spell?(get_data('spells').spell_data['Gauge Flow'], @settings) end

I just wonder if pulling a base setting, as opposed to a specified setting, is the right approach. Seems logical that some of the details should be able to be specified by the user, so that if nothing else, the user can specify simple things like the mana to use, instead of accepting the 5 mana base minimum.

asechrest avatar Jun 18 '22 17:06 asechrest

Could run buff gaf, or buff research, instead of cast_spell. Think theres something in base talks about a research waggle.

Raykyn55 avatar Jun 18 '22 18:06 Raykyn55

until DRSpells.active_spells['Gauge Flow'] > 20
  unless @settings.waggle_sets['research']
    DRCA.cast_spell?(get_data('spells').spell_data['Gauge Flow'], @settings)
  else
    wait_for_script_to_complete('buff', ['research'])
  end
  check_nerves
  pause 2
end

Raykyn55 avatar Jun 19 '22 00:06 Raykyn55

This looks like a good first issue for someone. The code suggestion in https://github.com/rpherbig/dr-scripts/issues/5838#issuecomment-1159586164 probably works as is. Just needs a bit of testing.

MahtraDR avatar Jan 21 '23 01:01 MahtraDR

100% on the good first issue, several options for improvement.

Another mitigation is to add gaf with a long enough recast: in town-training waggle crossing-training uses.

vtcifer avatar Jan 27 '23 21:01 vtcifer

Closing as stale. Nobody's stepped up.

MahtraDR avatar Aug 28 '23 03:08 MahtraDR