Western 1b — The Gunfighter’s Code

The protagonist is introduced through action that reveals their personal code — the rules they live by when no institution enforces behavior. This code might be honor, pragmatism, loyalty to a promise, or the discipline of a former lawman. What matters is that the reader sees the code before it is tested, so they understand what is at stake when the story puts pressure on it.

The Western protagonist’s code must be established before it’s tested. This is not optional — it’s the story’s moral framework. Whatever this person believes about justice, violence, obligation, and their own past will be the lens through which every subsequent event gets interpreted. Establish it wrong, or establish it too late, and the story loses its coherence at the level of theme.

What a Code Is and Why It Matters

A code in the Western sense is a set of operating principles that exist in the absence of institutional law. The gunfighter doesn’t defer to the sheriff because the sheriff may not exist, may be corrupt, or may lack the capacity to handle what needs handling. They operate by their own principles — principles that may align with conventional morality, substitute for it entirely, or depart from it in ways that define the story’s conflict.

Shane arrives at the Starrett homestead and within a few scenes we understand his code completely: he will not draw first, he will not harm civilians, he will not abandon people he has chosen to protect, and he has done things he cannot undo. All of this is visible before the plot requires any of it. The code is established so that when it gets tested, the reader understands what the test actually costs him.

The Outlaw Josey Wales works differently. Wales starts the film without a code — he starts with rage. His code develops over the course of the story, and that development is the Positive Change Arc. But even in his introduction, we see the raw material: loyalty to family, refusal to submit, willingness to stand. The code isn’t fully formed, but its foundation is visible, and that foundation makes the arc legible.

Flat Arc vs. Positive Arc: Different Establishment Needs

How you establish the code depends on which arc you’re writing.

In a Flat Arc Western — the model exemplified by Shane, High Noon, and Leone’s Man With No Name — the code is fully formed at the start. Will Kane knows exactly what he believes about duty and community obligation. The Man With No Name operates by a minimal but consistent ethics. The story tests whether that code can survive contact with the world’s indifference and opposition. The protagonist’s code doesn’t change; what changes is the world’s relationship to it.

In a Positive Arc Western — True Grit, Lonesome Dove, the Josey Wales model — the code starts broken, absent, or misdirected. Rooster Cogburn at the start of True Grit is a self-interested drunk who shoots prisoners in the back. His code, such as it is, is corrupt. Mattie Ross’s relentless demand for justice forces him to rediscover something better. In these stories, the 1b beat establishes not the finished code but the wound that the code must eventually overcome.

The Negative Change Arc establishes a code that is genuine but brittle — and the story shows how violence corrupts it. William Munny in Unforgiven believes he has put his violent nature behind him. The establishment of his code — his attempt at domesticity, his stated renouncement — is precisely what makes the arc’s collapse devastating. We have to believe his code before we can watch it disintegrate.

How to Establish a Code Without Stating It

Direct statement of values is almost always the wrong move. "I don’t shoot men in the back" is better shown than told. The technique is to place the protagonist in a situation that demands a small-scale version of the story’s central choice, and show what they do.

In Leone’s Once Upon a Time in the West, Harmonica’s code is established through action before he speaks a word: he faces three men alone, kills them without drama, and boards the stagecoach. We understand everything about him from this sequence — his patience, his competence, his isolation, his purpose. No exposition required.

The Coen Brothers' True Grit establishes Mattie Ross’s code through her negotiation with the horse trader in the first act. She is not the gunfighter, but her moral clarity and refusal to accept less than what is right drive the entire story. Her code — justice, regardless of inconvenience or cost — is made completely visible before any gun is drawn.

The Code as Structural Promise

Whatever code gets established in 1b is a promise to the reader about what will be tested. If the protagonist values loyalty above all, the story will find the situation where loyalty and survival are incompatible. If they believe in fair fights, the situation will demand an unfair one. The code isn’t just character establishment — it’s foreshadowing at the level of moral architecture. The reader should be able to look back at 1b after the climax and see exactly how the story honored its opening contract.

See Western 1c — The Community’s Life for how the community’s values contrast with and depend on the protagonist’s code, and Flat Arc for the structural implications of a code that holds unchanged through the story’s pressure.