Generic Summer Holiday - Effect Upkeep

This is my first public script. It automates upkeep on the +stat buff from the summer holiday.

You have to edit 1 line of code in the ash file:

string summer_effect = "Full-Body Tan";
Will contain the effect name you are after. (Muscle = "Heavily Breathing", Myst = "Marco Polarity", Moxie = "Full-Body Tan")

Then setup a mood in Mafia with the following options:

Trigger On: Unconditional trigger
Check For:
Command: call SummerHoliday.ash

Updates
I've updated it to 1.1. This version will run before every adventure to check status of the Summer Holiday buff. It places the desired accessory in slot 1 and returns to the previous outfit after getting the effect. There are several checks to make sure everything happened as planned.

If you want to change which slot is used, edit line 43 and change $slot[acc1] to $slot[acc2] or $slot[acc3].
 

Attachments

  • SummerHoliday.ash
    1.4 KB · Views: 71
Last edited:

lostcalpolydude

Developer
Staff member
One suggestion is to have it be an unconditional trigger that calls the script, and the script takes care of checking if you have the effect. That would mean you could edit the effect name in one place instead of two if you want to switch which buff you get.
 

zarqon

Well-known member
Nice idea for a script! Another suggestion would be to automate the gear swapping so that you don't need to make outfits. It would simply print a warning if you don't have a floaty device, otherwise it would make an outfit checkpoint, then equip your floaty device. After getting the desired effect, call "outfit checkpoint" to put the original outfit back on.
 
Top