Feature - Rejected Adventure to Force Clover Usage

bumcheekcity

Active member
I want a function to adventure ONLY using ten-leaf clovers.

Code:
boolean advclov(int adventures, location place);

Will adventure in [i]place[/i] for the given number of adventures, ONLY using ten-leaf clovers. Creates ten-leaf clovers from disassembled ones if relevant, buys clovers from the mall if out of HC/Ronin.

Basically, something to completely ignore the "don't use clovers" option. So yeah, that's my idea.
 
Um, can't you, BumCheekCity, just disable the clover protection preference and have at it?
 
Last edited:
If I attempt to adventure in a location with a clover, it disassembles it before adventuring.

I could disable the clover protection, but it wouldn't work for a script to be used by others who may want it enabled.

Could I somehow quickly change the preference using ASH, assemble a clover, adventure, then re-change the preference back? I tried searching for "clov" in my prefs file, but nothing.
 
Code:
prefref => ashq record r{string d ; }; r[string,string]m; file_to_map("defaults.txt",m); foreach t,p,d in m if(to_lower_case(p).contains_text(to_lower_case($string[%%]))) print(p+" ("+t+", now '"+get_property(p)+"', default "+d.d+")")
> prefref clov

cloverProtectActive (global, now 'true', default true)

Among other not-relevant preferences.
 
Could I somehow quickly change the preference using ASH, assemble a clover, adventure, then re-change the preference back?

Yes, you can. Here's an example:

Code:
alias getrock => ash if(item_amount($item[casino pass]) > 0 || my_meat() > 99) {string old=get_property("cloverProtectActive"); set_property("cloverProtectActive", "false"); if(item_amount($item[ten-leaf clover])>0) adventure(1, $location[Lemon Party]); else if(item_amount($item[disassembled clover]) > 0) {use(1, $item[disassembled clover]); adventure(1, $location[Lemon Party]);} else print("You need a clover to get your rock!"); set_property("cloverProtectActive", old);} else print("No access to the Casino.", "red");




How's that?
 
Back
Top