eegee
Member
ChibiParent 0.77
A simple script that automates raising your ChibiBuddy™. This script needs minimal tweaking and will try use balancing over adventuring unless close enough to optimal values.
As a responsible parent, this script will never kill your ChibiBuddy™ during the current day. This script is also capable of keeping your buddy alive for the 11-day trophy.
How to Use
Settings
chibiParent_allowBalancing & chibiParent_allowAdventuring : true/false [default: true & true]
chibiParent_allowDynamicBounds : true/false [default: true]
chibiParent_irresponsible : true/false [default: false]
To change a setting, use ZLib in the CLI. For example, to change pause time to 0 type:
There is also an implicit verbosity setting provided by ZLib. If you are not seeing any output from ChibiParent, make sure this is at least 1 using the command below. Normally verbosity is 3.
Automation
If you don't have an On Login script, you can use ChibiParent as one. To do this, type in the following in the CLI.
If you have an On Login script, call ChibiParent at the end or use the following below, to avoid your script from stopping if ChibiParent aborts.
Adding a Daily Deed
If you would like to chat with ChibiBuddy™ manually using a daily deed, disable chibiParent_haveChat and enter the code below into the CLI. After that you can move the new button around in Preferences > Daily Deeds.
How it Works (by default)
ChibiParent will use both balancing and adventuring to aim for [4, 4, 6, 6] stat levels. These levels are best when balancing according to the discussion at How to Chibi.
If you only have adventuring adventuring enabled, the optimal stat levels that the script will aim for are [5, 5, 5, 5].
Initially ChibiParent will try balance the stats. Three conditions are necessary for balancing to happen:
As more adventures are used ChibiParent will dynamically adjust the bound used for the max priority level. When 2 or more adventures have been used, the max priority will be set to 3.
Once all the adventures have been used up, ChibiParent will no longer try balancing since random events can be deadly. However, you can still turn on 'irresponsibility' to force balancing.
Version history
v0.77 fixed a bug with young buddies
v0.7 moved chat to end of script; added trophy detection
v0.6 redid logic for choosing when to balance; fixed adventuring bug introduced in v0.5; removed choice of optimals
v0.5 improved adventuring logic for keeping buddy alive; made creating a daily deed easier
v0.4 added dynamic bounds, summary output, and tweaking of internal logic
v0.3 fixed a logic issue when adventuring
v0.2 changed way of executing actions; added output of results
v0.1 initial release
TODO
Disclaimer
If you think the script is under performing, keep an eye at output for Random event!(s). Results may vary depending on KoL's RNG.
Also, the stat levels seem to have sub-stat levels. So don't worry if it looks like a balance/adventure had no effect.
A simple script that automates raising your ChibiBuddy™. This script needs minimal tweaking and will try use balancing over adventuring unless close enough to optimal values.
As a responsible parent, this script will never kill your ChibiBuddy™ during the current day. This script is also capable of keeping your buddy alive for the 11-day trophy.
How to Use
- Download "ChibiParent.ash" to your scripts folder
- Modify any settings listed below (defaults work just fine)
- Run directly or add to your automation
Settings
chibiParent_allowBalancing & chibiParent_allowAdventuring : true/false [default: true & true]
Allows ChibiParent to use balancing and/or adventuring.
chibiParent_haveChat : true/false [default: true]Let ChibiParent have a chat with ChibiBuddy™ at the end of the script.
chibiParent_pause : any number greater than or equal to 0 [default: 5]The time to pause before trying to balance/adventure.
chibiParent_allowDynamicBounds : true/false [default: true]
Allow ChibiParent to dynamically adjust the bounds that determine when to use adventuring instead of balancing. (see "How it Works")
chibiParent_distanceTillAdventure : any number greater than or equal to 0 [default: 2]The activation distance to prefer adventuring. The distance is the total distance of all the stats from their the optima. Set to 0 to disable.
chibiParent_irresponsible : true/false [default: false]
Turns ChibiParent into an 'irresponsible' parent by allowing the script to continue balancing, even after the script determined that balancing might kill your ChibiBuddy™ and the daily adventures have been depleted.
Having this setting enabled forces chatting with your ChibiBuddy™ (if allowed) at the *start* of the script.
Having this setting enabled forces chatting with your ChibiBuddy™ (if allowed) at the *start* of the script.
To change a setting, use ZLib in the CLI. For example, to change pause time to 0 type:
Code:
zlib chibiParent_pause = 0
There is also an implicit verbosity setting provided by ZLib. If you are not seeing any output from ChibiParent, make sure this is at least 1 using the command below. Normally verbosity is 3.
Code:
zlib verbosity = 1
Automation
If you don't have an On Login script, you can use ChibiParent as one. To do this, type in the following in the CLI.
Code:
set loginScript=ChibiParent.ash
Code:
cli_execute("try; ChibiParent");
Adding a Daily Deed
If you would like to chat with ChibiBuddy™ manually using a daily deed, disable chibiParent_haveChat and enter the code below into the CLI. After that you can move the new button around in Preferences > Daily Deeds.
Code:
ashq set_property("dailyDeedsOptions", get_property("dailyDeedsOptions") + ",$CUSTOM|Simple|Chat with ChibiBuddy™|ashq import ChibiParent; haveChat();|1")
How it Works (by default)
ChibiParent will use both balancing and adventuring to aim for [4, 4, 6, 6] stat levels. These levels are best when balancing according to the discussion at How to Chibi.
If you only have adventuring adventuring enabled, the optimal stat levels that the script will aim for are [5, 5, 5, 5].
Initially ChibiParent will try balance the stats. Three conditions are necessary for balancing to happen:
- each stat will be given a priority level (#40), and all levels must be less than 4
- there must be at least two stats less than or equal to 5, and at least two stats greater than or equal to 5
- the distance of each stat from it optimal level will be totalled and this total must be more than chibiParent_distanceTillAdventure
As more adventures are used ChibiParent will dynamically adjust the bound used for the max priority level. When 2 or more adventures have been used, the max priority will be set to 3.
Once all the adventures have been used up, ChibiParent will no longer try balancing since random events can be deadly. However, you can still turn on 'irresponsibility' to force balancing.
Version history
v0.77 fixed a bug with young buddies
v0.7 moved chat to end of script; added trophy detection
v0.6 redid logic for choosing when to balance; fixed adventuring bug introduced in v0.5; removed choice of optimals
v0.5 improved adventuring logic for keeping buddy alive; made creating a daily deed easier
v0.4 added dynamic bounds, summary output, and tweaking of internal logic
v0.3 fixed a logic issue when adventuring
v0.2 changed way of executing actions; added output of results
v0.1 initial release
TODO
- add extra logging for debugging purposes (might not be needed)
- allow the script to cope with the loss of a buddy, and bring it back to life
Disclaimer
If you think the script is under performing, keep an eye at output for Random event!(s). Results may vary depending on KoL's RNG.

Also, the stat levels seem to have sub-stat levels. So don't worry if it looks like a balance/adventure had no effect.
Attachments
Last edited: