for(int i = 0; i < scouttroop.count; i++) { scouttroop[i].learnskill("knots", new parameters("complexity", "easy")); if(!scouttroop[i].meritbadgeexists("preexpulsive challenges")) { scouttroop[i].earnmeritbadge("preexpulsive challenges"); } scouttroop[i].remember("community service", "important"); if(scouttroop[i].dream == "unobtainable") { scouttroop[i].reconfiguregoals("achievable", "step-by-step"); } else { scouttroop[i].forget("doubt"); } }