See this example properly formatted in the QUT Cite tool.
Standard in-text citation examples are in Getting started - In-text citation.
Author. Year. Title. Edited by Editor. Place of publication: Publisher.
Shakespeare, William. 2006. Romeo and Juliet. Edited by Brian Gibbons. London: Methuen.
Author. Year. "Episode." In Book title, Pages. Place of publication: Publisher.
Whedon, Joss. 2003. "Anne." In Buffy the vampire slayer: The script book, Season three, 1-53. New York: Simon Pulse.
A script from an anthology is treated as a chapter in an edited book, but will not always have an editor.