Add variable for users to define current VIP level and Campaign stage
This issue will prepare the script in order to act upon these two variables, vipLevel and campaignStage. I recommend adding these two points to the Player section of the config.ini.
might be convenient to ask the user for these values during initialization still wondering what should be the default values for these?
Good question @FallenKN... Didn't think about that yet.
The script definitely has to be able to run without the user setting those in the config. Though they should be seen as sort of the "must-set" kind of variables.
I'm guessing the default value for both should be 0, and the script then checks if it's 0 or not and warns the user that they have not been set yet. The script should still be able to run fine though, basically the same as it does now. I'm not entirely sure how that will later work out, when certain actions are only performed when the user is VIP level x, though I'm guessing we can always have a default way of doing things.
So imagine: if you are below, say, chapter 18, the script will have to use the old way of collecting Oak Inn presents. Though if you are higher, the script should use the new way. So we'd code something like this:
if [ $levelCampaign < 18 ]; then
# Run old way
else
# Run new way
fi
This would then turn into something like
if [ $levelCampaign < 18 ] || [ $levelCampaign = 0 ]; then
# Run old way
else
# Run new way
fi
I know realistically speaking, the first option will always be true if it's set to 12 or 0, so the second check is kind of useless, but I hope you get my point. We can set various ifs that run whenever variables are in their default state.
also with the campaign chapter, it will decide how many fast rewards to collect. like if you're on chapter 36 you should collect fast rewards 3 extra times. https://www.reddit.com/r/afkarena/comments/pxiugb/aa_inseas0ns_almanac_v173/
Nice find @delgatojr! If you have any more, feel free to comment them here.