//Global varible
int FEATHER_LEVEL = 0 //you will need to chance this varible when you aquire a new feather
//just add this simple code to you item pickup for each feather
item script feather1{
void run() {
FEATHER_LEVEL = 1;
}
}
item script feather2{
void run() {
FEATHER_LEVEL = 2;
}
}
item script feather3{
void run() {
FEATHER_LEVEL = 3;
}
}
//NOTE you will need to replace ***1 with the ID for feather 1, ***2 w/2 and ***3 w/3
global script main_script {
void run() {
if (FEATHER_LEVEL >= 2 && Link->MP < 32) {
Link->Item[252] = false;
Link->Item[253] = true;
}
if (FEATHER_LEVEL >= 1 && Link->MP < 16) {
Link->Item[253] = false;
Link->Item[91] = true;
}
if (FEATHER_LEVEL == 2 && Link->MP >= 16) {
Link->Item[253] = true;
}
if (FEATHER_LEVEL == 3 && Link->MP >= 32) {
Link->Item[252] = true;
}
}
}