taltamir
Member
Most noteable are the settings
are not actually changed when changing them via script. only changing them via the mafia UI works.
Take for example currentMood
In the UI I create a mood called test with the contents of
I use the UI to quickly change moods to show it works
I then run the script
Which outputs
and typing in CLI
So the preference was clearly changed to apathetic. mafia just doesn't change it because the change was not done via UI
Incidentally I tried getting a debug log of this but this is all it shows
Code:
[COLOR=#333333]breakableHandling
[/COLOR]currentMood
Take for example currentMood
In the UI I create a mood called test with the contents of
Code:
Always, !why_is_this_being_run
I use the UI to quickly change moods to show it works
Code:
Preference currentMood changed from apathetic to slimemom
Preference currentMood changed from slimemom to test
I then run the script
Code:
set_property("currentMood", "apathetic");
adv1($location[The Arid\, Extra-Dry Desert], -1, "");
Which outputs
Code:
[COLOR=olive]> call scripts\tt_test.ash[/COLOR]
currentMood => apathetic
Preference currentMood changed from test to apathetic
[COLOR=red]Unable to invoke !why_is_this_being_run[/COLOR]
and typing in CLI
Code:
[COLOR=olive]> prefref currentMood[/COLOR]
[TABLE]
[TR]
[TH] Name[/TH]
[TH] Value[/TH]
[TH] Default[/TH]
[TH] Scope[/TH]
[/TR]
[TR]
[TD] currentMood[/TD]
[TD] apathetic[/TD]
[TD] default[/TD]
[TD] user[/TD]
[/TR]
[/TABLE]
Incidentally I tried getting a debug log of this but this is all it shows
Code:
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
KoLmafia v20.3 r20019, Windows 10, Java 1.8.0_251
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Please note: do not post this log in the KoLmafia thread of KoL's
Gameplay-Discussion forum. If you would like the KoLmafia dev team
to look at it, please write a bug report at kolmafia.us. Include
specific information about what you were doing when you made this
and include this log as an attachment.
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
Timestamp: Mon Apr 20 00:46:24 MDT 2020
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
> call scripts\tt_test.ash
Starting ASH script: tt_test.ash
currentMood => apathetic
Preference currentMood changed from test to apathetic
Unable to invoke !why_is_this_being_run
Finished ASH script: tt_test.ash
Last edited: