matt.chugg
Moderator
I'm not sure how this would be implimented, or if its even particularily feasible, but i'd love to be able to have an option in some/all of the choice adventures to hand off the decision to a script.
For example, with the new clan basement, the choice options are great, but i'd like to be able to make the decision at the point where the adventure occurs/
EG: attic options would be:
Show in browser
staff guides
ghost traps
mass kill werewolves
other exising options
consult choice.ash
choice.ash could then decide which choice to make based on whether you have chainsaws, silver bullets etc.
I guess what i'm asking for is a customchoice script option a bit like customcombat.
Failing that, I think a run_choice(int) command in ash, (which may be part of the above feature) would be useful, similar to run_combat (which would essentialy be a wrapper to visit_url("choice.php?pwd&whichchoice=x&option=y");
which might be used something like:
For example, with the new clan basement, the choice options are great, but i'd like to be able to make the decision at the point where the adventure occurs/
EG: attic options would be:
Show in browser
staff guides
ghost traps
mass kill werewolves
other exising options
consult choice.ash
choice.ash could then decide which choice to make based on whether you have chainsaws, silver bullets etc.
I guess what i'm asking for is a customchoice script option a bit like customcombat.
Failing that, I think a run_choice(int) command in ash, (which may be part of the above feature) would be useful, similar to run_combat (which would essentialy be a wrapper to visit_url("choice.php?pwd&whichchoice=x&option=y");
which might be used something like:
Code:
if (contains_text(page,"<b>The Unliving Room</b>")) {
// Unliving room
// close windows if they are open first.
if (contains_text(page,"value=\"Close the windows\"")) {
print("ML++");
run_choice(1);
} else if(item_amount($item[chainsaw chain]) > 0) {
print("Using chainsaw chain");
run_choice(3);
} else if(item_amount($item[funhouse mirror]) > 0) {
print("Using funchouse mirror");
run_choice(4);
} else {
print("Opening the box");
run_choice(5);
}
}