So what would be the correct syntax to change Link's equipped weapons? I have the quest rule set so that you can equip any weapon to either A or B. I would also like to know how you can return the value of what is in item slot A and B.

CODE: Show
item script ItemSelector{
void run(int a, int b){

int a_equip;
int b_equip;

a_equip = GetEquipmentA();
b_equip = GetEquipmentB();

if (a_equip == b){
Link->SelectAWeapon(b);
}

if (b_equip == b){
Link->SelectBWeapon(b);
}
}
}



That's just me dickin' around, trying to figure it out. Also when using SelectAWeapon() and SelectBWeapon() - what is it referencing exactly? The item number itself, or the order number of the items in the inventory?