default { state_entry() { llOwnerSay("Calculate the slope given the angle. Please say the angle in chat."); llListen(0, "", llGetOwner(), ""); } listen(integer chan, string name, key id, string msg) { float angle = (float)msg * DEG_TO_RAD; llOwnerSay("For an input angle of " + msg + ", you climb " + (string)llTan(angle) + " m per each horizontal m"); } }