Feature - Implemented Choice encounter confusion by non-adv.php and "walkaway" choices

Veracity

Developer
Staff member
I'm awaiting a new Lil' Doctor Bag quest to re-test this (takes a few days normally as I only use sausage goblins to advance them and only when I don't have other use for them)
I don't use my Lil' Doctor Bag, these days (too many other accessories I find more useful), but I do have one, so could try it out.

I think my Force Saber issue is a different problem which I'll create a new post for rather than clog this one.
Force Saber redirects to a choice when you submit "Use the Force" during combat. Interestingly, all three of the options actually do end the combat, so it could/should be a choice_follows_fight()? Curious to see your report. This is something I can easily test myself, since I use this skill every day in-run.
 

Veracity

Developer
Staff member
I just experimented with Use the Force:

Code:
[598] A Mob of Zeppelin Protesters
Encounter: lynyrd skinner
Round 0: Veracity wins initiative!

[color=green]> ash use_skill( 1, $skill[ use the force ] )[/color]

Round 1: Veracity casts USE THE FORCE!
Encounter: Using the Force
Returned: true

[color=green]> ash handling_choice()[/color]

Returned: true

[color=green]> choice[/color]

[b]choice 1[/b]: "I am not the adventurer you are looking for."
[b]choice 2[/b]: "You will go find two friends and meet me here."
[b]choice 3[/b]: "You will drop your things and walk away."

[color=green]> ashq run_choice( 3 )[/color]

Submitting option 3 for choice 1387
You acquire an item: sweet roll Alabama
You acquire an item: lynyrd snare
You acquire an item: Saturday Night Special
You acquire an item: lynyrd musk
I found the monster in the Relay Browser, but did the rest with ASH commands, simulating what you might run with a script.

When you submit "Use the Force", KoL redirects to choice.php. This is not a "choice follows fight" situation where there is a link on the page to choice.php. It is a real redirect. The result is, after the use_skill completes, you are already in the choice. Therefore, handling_choice() is true, and you can use run_choice() to select the option you want.
 

Veracity

Developer
Staff member
I experimented with Lil' Doctor Bag:

Code:
[804] Barf Mountain
Encounter: horrible tourist family
...
Round 2: Veracity wins the fight!
...

[color=green]> ash choice_follows_fight()[/color]

Returned: true

[color=green]> ashq visit_url( "choice.php" )[/color]

Encounter: Is There A Doctor In The House?

[color=green]> ash handling_choice()[/color]

Returned: true

[color=green]> choice[/color]

[b]choice 1[/b]: Accept the case (get quest)
[b]choice 2[/b]: Decline the case (refuse quest)
[b]choice 3[/b]: Turn off the phone for the rest of the day (stop offering quest)

[color=green]> ashq run_choice(2)[/color]

Submitting option 2 for choice 1340
Just like a normal choice follows fight, near as I can see.
 
Top