available_unit_actions
Lists the legal actions for a Civ V unit: missions, tile builds, commands, and promotions. Call before ordering missions or choosing promotions to see valid options.
Instructions
Legal unit-panel actions for this unit right now (missions, tile builds on ITS plot, commands,
promotions). Call this before unit_mission. Move-to is a separate tool (move_unit). Does not select
the unit or pan the camera. For Workers/Work Boats also returns nearby_builds: plots within 2 tiles
that still need work (unimproved, or pillaged) with the builds legal there -- move_unit onto one, then
unit_mission(MISSION_BUILD, build=...). build_info adds the unit-panel turns and yield_delta for each
build. A build issued with 0 moves left starts next turn. ranged_targets includes combat strength
and expected damage; air previews include retaliation and a warning about interception.
Melee previews include fire_support_damage in damage taken and its effect on damage dealt.
promotions are the chooser's own rows -- promotion (pass this to choose_promotion) and name;
what each does is in reference("promotions"). An action row's help is only the line the panel
computes for this unit (upgrade target and price, scrap gold, golden age length, paradrop range);
the standing sentence for every action is in reference("actions").
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| unit_id | Yes |