C-Dawg
11-18-2006, 12:56 PM
Problems ahoy.
This script will GIVE link the level 2 sword when he walks into the room, but won't take it away when he leaves and re-enters.
// =============================================
// toggle_item - This FFC, a trainer FFC for the
// global character change FFC, will toggle whether
// or not Link has item whose ID is included as D0
// in the FFC.
// =============================================
ffc script toggle_item{
void run(int item_to_toggle){
if (Link->Item[item_to_toggle]){ Link->Item[item_to_toggle] = false; }
else { Link->Item[item_to_toggle] = true; }
} // end of void run
}
Not sure why. Does the FFC not reset when Link leaves and comes back?
This script will GIVE link the level 2 sword when he walks into the room, but won't take it away when he leaves and re-enters.
// =============================================
// toggle_item - This FFC, a trainer FFC for the
// global character change FFC, will toggle whether
// or not Link has item whose ID is included as D0
// in the FFC.
// =============================================
ffc script toggle_item{
void run(int item_to_toggle){
if (Link->Item[item_to_toggle]){ Link->Item[item_to_toggle] = false; }
else { Link->Item[item_to_toggle] = true; }
} // end of void run
}
Not sure why. Does the FFC not reset when Link leaves and comes back?