In its first season, HBO’s “Westworld” was about a luxury amusement park where guests could cavort with human-like robot “hosts” in a Wild West setting — with multiple timelines and surprising reveals (Jeffrey Wright’s seemingly human character Bernard was really a robot!)

But Season 1 was straightforward compared to Season 2, which not only introduced more settings (Shogun World, Raj World) but also included revelations about the park’s true agenda.

As the Season 2 finale draws near (9 p.m. Sunday on HBO), it’s sure to set up events for Season 3 (which doesn’t yet have a premiere date).

Here are a few things to look for in the 90-minute season-ender.

How did the Valley flood, and how did Teddy get there?

The first episode of Season 2 ends with an eerie final shot: a flooded valley filled with dead host bodies, and Teddy Flood (James Marsden) is among them. In the time-jump “Westworld” style, the rest of Teddy’s story this season has unraveled several days before this event. But he shot himself in last week’s penultimate episode, so the show has finally caught up to his timeline. Now that he’s dead (at least for now) the question remains: how does his body get to that flooded valley — and for what purpose?

Is Dolores actually the antagonist?

The eighth episode, “Kiksuya,” which revealed the Ghost Nation hosts as being pivotal to the park’s history, set up Dolores (Evan Rachel Wood) as the possible antagonist of this story. Season 1 presented her as the first enlightened host. Season 2 revealed that Akecheta (Zahn McClarnon) was actually the first to attain awareness, and he ominously refers to Dolores as “Deathbringer.” Will she finally reach her dark potential in the finale?

Is William actually a host, and is Emily really dead?

William (Ed Harris) has been on a long and bloody crusade through the park since Season 1. In Season 2 we met his daughter, Emily (Katja Herbers), but in last week’s shocking episode William shot her, thinking she was a host. It seems clear that she was human, but since “Westworld” loves its surprising reveals, you never know. Similarly, in his anguish after the tragic deed, William paused to verify that he wasn’t a host, either. Was he just being paranoid, or does Ford (Anthony Hopkins) have another trick up his sleeve?

What’s going to happen to all the guest data?

The Maze was a repeated puzzle in Season 1, but Season 2 has lingered on the mysterious Valley Beyond. We’ve learned that it was originally William’s idea, that Akecheta thinks it’s a “door” to the real world, and that it looks like a giant computer server. Bernard later clarifies that its true purpose is to collect and store guests’ private data, Facebook-style. Since all the main characters are converging on the Valley and seeking to use it for their own ends, it remains to be seen exactly how this data will be weaponized and who it will serve.

“Westworld” Season finale 9 p.m. Sunday on HBO