Difference between pages "Quest Tracking Preferences" and "Chew"

From Kolmafia
(Difference between pages)
Jump to navigation Jump to search
imported>Bale
(Additional organization)
 
imported>Relyk
(Created page with "{{ #vardefine:name|chew}}{{ #vardefine:return_type|boolean}}{{ FunctionPage| name={{#var:name}}| function1={{Function| name={{#var:name}}| aggregate={{#var:aggregate}}| retu...")
 
Line 1: Line 1:
{{TOCright}}
+
{{
KoLMafia internally tracks progress for a number of quests. These are stored as preferences in settings\[charactername]_prefs.
+
#vardefine:name|chew}}{{
 +
#vardefine:return_type|boolean}}{{
  
==Quests Granted by Familiars==
+
FunctionPage|
===questF01Primordial===
+
name={{#var:name}}|
=unstarted
 
===questF02Hyboria===
 
=unstarted
 
===questF03Future===
 
=unstarted
 
===questF04Elves===
 
=unstarted
 
===questF05Clancy===
 
=unstarted
 
  
==Guild Quests==
+
function1={{Function|
===questG01Meatcar===
+
name={{#var:name}}|
Possible values: unstarted, started
+
aggregate={{#var:aggregate}}|
 +
return_type={{#var:return_type}}|
 +
return_also={{#var:return_also}}|
 +
parameter1={{Param|int|qty}}|
 +
parameter2={{Param|item|consume}}|
 +
p1desc={{Pspan|qty}} is the quantity to chew|
 +
p2desc={{Pspan|consume}} is the item to chew|
 +
}}|
  
===questG02Whitecastle===
+
function_description=Will attempt to chew {{pspan|qty}} amount of item {{pspan|consume}}. Returns true for chewable items and false for items that are not. (The return value does not reflect whether or not the items were actually consumed.)|
=unstarted
 
===questG03Ego===
 
=started
 
===questG04Nemesis===
 
=started
 
===questG05Dark===
 
=unstarted
 
===questG06Delivery===
 
=unstarted
 
 
 
==Quests Granted by Items==
 
===questI01Scapegoat===
 
=unstarted
 
===questI02Beat===
 
=unstarted
 
 
 
==Council Quests==
 
===questL02Larva===
 
=finished
 
===questL03Rat===
 
=finished
 
===questL04Bat===
 
=finished
 
===questL05Goblin===
 
=finished
 
===questL06Friar===
 
=finished
 
===questL07Cyrptic===
 
=finished
 
===questL08Trapper===
 
=finished
 
===questL09Lol===
 
=unstarted
 
===questL09Topping===
 
=finished
 
 
 
====booPeakProgress====
 
booPeakProgress tracks the hauntedness level of {{kolwiki|A-boo Peak}}. A value of 18, for instance, indicates that A-boo Peak is 18% haunted.
 
 
 
Possible values: 0 - 100
 
 
 
====chasmBridgeProgress====
 
chasmBridgeProgress tracks the player's progress in building a bridge across the {{kolwiki|Orc Chasm}}. A value of 10, for instance, indicates that the bridge is 10 planks long.
 
 
 
Possible values: 0 - 30
 
====oilPeakProgress====
 
oilPeakProgress tracks the remaining pressure at {{kolwiki|Oil Peak}}. It decreases as the player reduces the pressure in the zone.
 
 
 
Possible values: 0.00 - 310.66
 
* 310.66: Pressure not yet reduced
 
* 0.00: Subquest completed
 
 
 
====twinPeakProgress====
 
twinPeakProgress is a nibble bitmask with least significant bit set for the first choice and the most significant for the fourth. You can parse this with bitwise operators. Here's some code that demonstrates how to use it.
 
  
 +
code1={{CodeSample|
 +
title=Code Sample|
 +
description=Chew as many coffee pixie sticks as possible.|
 +
code=
 
<syntaxhighlight>
 
<syntaxhighlight>
void comma(buffer b, string s) {
+
item it = $item[coffee pixie stick];
if(length(b) > 0)
+
int spleenUsed = it.spleen;
b.append(", ");
+
int amount = (spleen_limit() - my_spleen_use()) / spleenUsed;
b.append(s);
+
chew(amount, it);
}
 
 
 
boolean mysterious(int progress, int c) {
 
return (progress & (1 << c)) == 0;
 
}
 
 
 
string twinPeak() {
 
int p = get_property("twinPeakProgress").to_int();
 
buffer need;
 
if(mysterious(p, 0)) need.comma("4 Stench Resistance");
 
if(mysterious(p, 1)) need.comma("+50% Item Drop");
 
if(mysterious(p, 2)) need.comma("Jar of Oil");
 
// Only check for final if first three complete
 
if(length(need) == 0) {
 
if(mysterious(p, 3))
 
return "Need +40% Initiative";
 
return "Twin Peak Completed";
 
}
 
return "Need " + need;
 
}
 
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
}}|
  
===questL10Garbage===
+
see_also={{SeeAlso|eat|drink}}|
=finished
+
cli_equiv=The CLI command "chew" works similarly.|
===questL11MacGuffin===
+
}}
=finished
 
===questL11Manor===
 
=finished
 
 
 
====wineCellarProgress====
 
=3
 
 
 
===questL11Palindome===
 
=finished
 
===questL11Pyramid===
 
=finished
 
 
 
====gnasirProgress====
 
gnasirProgress is a nibble bitmask with one bit for each possible way you can advance {{kolwiki|Quest_for_the_Holy_MacGuffin|Gnasir's quest}}. You can parse this with bitwise operators. Here's some code that demonstrates how to use it.
 
<syntaxhighlight>
 
int gnasirProgress = get_property("gnasirProgress").to_int();
 
buffer gnasir;
 
if((gnasirProgress & 1) == 0)
 
print("Gnasir wants a stone rose");
 
if((gnasirProgress & 2) == 0)
 
print("Gnasir wants a can of black paint");
 
if((gnasirProgress & 4) == 0)
 
print("Gnasir wants a killing jar");
 
if((gnasirProgress & 8) == 0)
 
print("Gnasir wants a 15 worm-riding manual page");
 
if((gnasirProgress & 16) == 0)
 
print("You need to use a drum machine to ride the worm");
 
</syntaxhighlight>
 
 
 
===questL11Worship===
 
=finished
 
 
 
====hiddenApartmentProgress====
 
hiddenApartmentProgress tracks progress through the {{kolwiki|Hidden Apartment Building}} during the Quest for the Holy MacGuffin.
 
 
 
Possible values: 0, 1, 6 - 8
 
* 0: Haven't opened the Hidden Apartment Building
 
* 1: Hidden Apartment Building is open for adventuring
 
* 6: Encountered the Protector Spirit
 
* 7: Found the stone sphere
 
* 8: Placed the stone sphere in the relevant overgrown shrine
 
 
 
====hiddenBowlingAlleyProgress====
 
hiddenBowlingAlleyProgress tracks progress through the {{kolwiki|Hidden Bowling Alley}} during the Quest for the Holy MacGuffin.
 
 
 
Possible values: 0, 1, 6 - 8
 
* 0: Haven't opened the Hidden Bowling Alley
 
* 1: Hidden Bowling Alley is open for adventuring
 
* 6: Encountered the Protector Spirit
 
* 7: Found the stone sphere
 
* 8: Placed the stone sphere in the relevant overgrown shrine
 
 
 
====hiddenHospitalProgress====
 
hiddenHospitalProgress tracks progress through the {{kolwiki|Hidden Hospital}} during the Quest for the Holy MacGuffin.
 
 
 
Possible values: 0 - 8
 
* 0: Haven't opened the Hidden Hospital
 
* 1: Hidden Hospital is open for adventuring, but haven't bowled.
 
* 2-5: Number of times bowled is 1 less than hiddenHospitalProgress
 
* 6: Encountered the Protector Spirit
 
* 7: Found the stone sphere
 
* 8: Placed the stone sphere in the relevant overgrown shrine
 
 
 
====hiddenOfficeProgress====
 
hiddenOfficeProgress tracks progress through the {{kolwiki|Hidden Office Building}} during the Quest for the Holy MacGuffin.
 
 
 
Possible values: 0, 1, 6 - 8
 
* 0: Haven't opened the Hidden Office Building
 
* 1: Hidden Office Building is open for adventuring
 
* 6: Encountered the Protector Spirit
 
* 7: Found the stone sphere
 
* 8: Placed the stone sphere in the relevant overgrown shrine
 
 
 
===questL12War===
 
=finished
 
 
 
====warProgress====
 
Possible values for the progress of the {{kolwiki|Mysterious Island Quest|Isle War}}:
 
*unstarted: We can still visit the small version of the Mysterious Island
 
*started: The war is in progress
 
*finished: The final boss or bosses were defeated
 
 
 
====sideDefeated====
 
Which side of the {{kolwiki|Mysterious Island Quest|Isle War}} was defeated during the Level 12 quest.  
 
 
 
Possible values:
 
*neither
 
*hippies
 
*fratboys
 
*both
 
 
 
===questL13Final===
 
=finished
 
 
 
==Miscellaneous Quests==
 
===questM01Untinker===
 
=finished
 
===questM02Artist===
 
=unstarted
 
===questM03Bugbear===
 
=unstarted
 
===questM04Galaktic===
 
=started
 
===questM05Toot===
 
=unstarted
 
===questM06Gourd===
 
=unstarted
 
===questM07Hammer===
 
=unstarted
 
===questM08Baker===
 
=unstarted
 
===questM09Rocks===
 
=unstarted
 
===questM10Azazel===
 
=finished
 
===questM11Postal===
 
=unstarted
 
===questM12Pirate===
 
=finished
 
===questM13Escape===
 
=unstarted
 
===questM14Bounty===
 
=unstarted
 
===questM15Lol===
 
=started
 
 
 
==Sea Quests==
 
===questS01OldGuy===
 
=finished
 
===questS02Monkee===
 
=unstarted
 
 
 
====merkinQuestPath====
 
merkinQuestPath indicates which path the player has chosen in the {{kolwiki|Mer-Kin Deepcity}}, during the {{kolwiki|Sea Monkees Quest}}.
 
 
 
Possible values:
 
* none: Player has not yet chosen a path
 
* gladiator: Player will fight Yog-Urt, Elder Goddess of Hatred
 
* scholar: Player will fight Shub-Jigguwatt, Elder God of Violence
 
* done: Player has completed the Sea Monkees Quest
 
 
 
====skateParkStatus====
 
 
 
==Bug Bear Invasion Properties==
 
 
 
===mothershipProgress===
 
mothershipProgress tracks progress of level completion in the {{kolwiki|Bugbear Mothership}}. It goes from 0 to 3 as that level is cleared.
 
 
 
Possible values: 0-3
 
  
===statusEngineering===
+
[[Category:Item Management]]
===statusGalley===
 
===statusMedbay===
 
===statusMorgue===
 
===statusNavigation===
 
===statusScienceLab===
 
===statusSonar===
 
===statusSpecialOps===
 
===statusWasteProcessing===
 
All of these work the same way.
 
*0-x (integers): insufficient bodata collected)
 
*open: all biodata collected and zone accessible
 
* unlocked: biodata collected but zone not yet accessible
 
* cleared: zone has been cleared
 

Latest revision as of 23:12, 17 October 2015

Function Syntax

boolean chew(int qty ,item consume )

  • qty is the quantity to chew
  • consume is the item to chew

Will attempt to chew qty amount of item consume. Returns true for chewable items and false for items that are not. (The return value does not reflect whether or not the items were actually consumed.)

Code Sample

Chew as many coffee pixie sticks as possible.

item it = $item[coffee pixie stick];
int spleenUsed = it.spleen;
int amount = (spleen_limit() - my_spleen_use()) / spleenUsed;
chew(amount, it);

CLI Equivalent

The CLI command "chew" works similarly.

See Also

eat() | drink()