Banana Lord
Member
I want to make a function that will make sure a character can fit in at least one more AT buff. So if they have 2 AT songs active and they can hold a maximum number of 3 in their head then the function will do nothing. However, if they have 3 active then it will shrug 1. It won't do this at random, rather it will try to shrug a buff that the user has the skill for (so that they can easily replace it later). If the user has the skill to cast a number of their active AT buffs then the script will shrug the one that costs the least MP.
The main application for this is to make a slot available for eatdrink to run ode, and then ditch ode so that the user has access to all of their song slots again.
I haven't got very far xD
The main application for this is to make a slot available for eatdrink to run ode, and then ditch ode so that the user has access to all of their song slots again.
I haven't got very far xD
PHP:
void make_room_for_at_buff()
{
boolean four_songs = boolean_modifier("four songs");
boolean extra_song = boolean_modifier("additional song");
int max_songs = 3 + to_int(four_songs) + to_int(extra_song);
if(num_songs == max_songs)
{
remove one
}
}