Copyright © 2005 by Antony Ward

Published by New Riders. For information on New Riders Games books, contact:

New Riders
1249 Eighth Street
Berkeley, CA 94710
(510) 524-2178
Fax: (510) 524-2221

To report errors, please send a note to

New Riders is an imprint of Peachpit, a division of Pearson Education


Editors: Kate McKinley, Linda Harrison

Production Editor: Lisa Brazieal

Technical Editors: Phelan Sykes, Charles Shami, Jared Fry

Copy Editor: Carol Henry

Interior design: Frances Baca

Compositor: Owen Wolfson

Indexer: Karin Arrigoni

Cover design and illustration: Aren Howell

Notice of Rights

All rights reserved. No part of this book may be reproduced or transmitted in any form by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. For information on getting permission for reprints and excerpts, contact

Notice of Liability

The information in this book is distributed on an "As Is" basis, without warranty. While every precaution has been taken in the preparation of the book, neither the authors nor Peachpit Press shall have any liability to any person or entity with respect to any loss or damage caused or alleged to be caused directly or indirectly by the instructions contained in this book or by the computer software and hardware products described in it.


Many of the designations used by manufacturers and sellers to distinguish their products are claimed as trademarks. Where those designations appear in this book, and Peachpit Press was aware of a trademark claim, the designations appear as requested by the owner of the trademark. All other product names and services identified throughout this book are used in editorial fashion only and for the benefit of such companies with no intention of infringement of the trademark. No such use, or the use of any trade name, is intended to convey endorsement or other affiliation with this book.

9 8 7 6 5 4 3 2 1

Printed and bound in the United States of America


I would like to dedicate this book firstly to my wife, Jade. Her continued support and understanding has been amazing, not just throughout the creation of this book but in the eight years we have been together.

The second dedication is to our children: Jacob, currently 18 months old, and our new baby who is growing as we speak and scheduled to make an appearance around January 2, 2005.

I love you all!


    The actual idea of writing a book hadn't even entered my mind until a friend of mine, Mat Buckland (author of Programming Game AI By Example), suggested I give it a go. So if it weren't for a chance conversation with him, this book might never have been written.

    Being a new author, I was a bit wary when I began this venture, but New Riders took me by the hand and guided me through the whole process, making it easy for me to concentrate on getting the information across to you readers.

    Over the course of the book's creation, I have worked with so many wonderful peoplepeople who have shared my vision in creating a book for those who want to make great characters for games. So to all the people I haven't mentioned here, you have not been forgotten, and thanks for your time and help.

    My first contact with New Riders was with Elise Walter, whom I bugged constantly while my proposal was being scrutinized.

    Next came my editors, Linda Harrison and then Kate McKinley. Both have been my guardian angels, going above and beyond to make this book the best it could be.

    Technical editors Phelan Sykes, Charles Shami, and Jared Fry provided invaluable comments and advice. I have learned a lot from you all.

    Toward the end of the process came copyeditor Carol Henry, who took each chapter and smoothed it out for me, ironing out all the creases and making it an easier read. Then Owen Wolfson went to heroic lengths to pull it all together and make it look like a book.

    Finally, thank you, the reader, for buying this book. I hope you get as much out of reading it as I did writing it.