void main() { object oPC = GetClickingObject(); object oTarget = GetObjectByTag("fr_iwd_qboat"); object oShip = GetWaypointByTag("fr_iwd_ship"); object oNoShip = GetWaypointByTag("fr_iwd_noship"); if((GetLocalInt(oTarget, "Chk")==0)) { AssignCommand (oPC,JumpToObject(oNoShip)); } else { AssignCommand (oPC,JumpToObject(oShip)); } }