Upcoming Events
Unite 2010
11/10 - 11/12 @ Montréal, Canada

GDC China
12/5 - 12/7 @ Shanghai, China

Asia Game Show 2010
12/24 - 12/27  

GDC 2011
2/28 - 3/4 @ San Francisco, CA

More events...
Quick Stats
95 people currently visiting GDNet.
2406 articles in the reference section.

Help us fight cancer!
Join SETI Team GDNet!
Link to us Events 4 Gamers
Intel sponsors gamedev.net search:

Thank You, National Enquirer

Some months before, while waiting in a supermarket checkout line, I observed that the headlines in the National Enquirer appeared to be designed by a combinatorial algorithm using standard components such as Elvis, flying saucers, revolutionary new diet plans, freakish babies, secret things, etc. Reflecting further, I realized that indeed a great many headlines have a formulaic quality to them. Perhaps, I mused, someday I would write a headline generator program for harried editors.

Now that fantasy came back to me, and I realized that I could put that crazy idea to work in my design. I could have a headline generator that would present events to the player in terms of news stories generated by combinatorial algorithms. The basic form of my sentence template looked like this:

Subject Verb Direct Object Degree

Here, Subject referred to the country that was taking the action, Verb was the nature of the action taken, Direct Object was the country upon whom the action was being performed, and Degree was the intensity of the action. Thus,

USA offers $100 million in economic aid to Panama.

would have USA as the subject, Panama as the direct object, "offer economic aid" as the verb, and "$100 million" as the degree. Of course, internally these were represented by simple numbers: index values for the countries, verbs, and degrees.

Over the course of time, I embellished the headline generator. First came embellishments to the presentation of the subject. There were two of these: leader name and capital name. The code could substitute "Washington" or "President Reagan" for "USA." Naturally, I made these substitutions available for the direct object. Extending the idea, I added the name of the insurgencies of every country.

Representing degrees of action was easy in most cases: I needed strings for how much money, how many troops, or what kind of treaty was being signed. However, there was one kind of headline that posed more complex problems: the headline describing domestic events. For example, it was important to provide information on the progress of the insurgency. For such headlines, the basic template was this:

{Insurgency of country X} {is in this state of development}

In other words, it was just a subject and a statement of degree. This, I found, could quickly become boring. "Panamanian insurgency grows more powerful" just doesn't make for exciting reading. So I developed a scheme for providing some variety and color. Here's an example:

    0*Anti-government guerrillas*Forces opposed to the government*% fighters*Members of the %*

    0* launch a series of attacks on* fight with government troops in* carry out attacks on* take control of*

    1* isolated villages* several remote towns* two provincial capitals* the outskirts of @*

    3*. *

Here's how the system works:

  • The first character, a numeral, denotes the method by which one of the succeeding text segments is to be selected.

  • A value of 0 says that the segment is to be chosen randomly.

  • A value of 1 indicates that the segment is to be chosen based on the rank index passed to the headline routine.

  • A value of 3 indicates that there is no choice to make, and that the first and only segment is to be used.

  • Segments, it should be obvious, are delimited by asterisks.


Fantasize. Play what-if games. Ask silly questions. Why aren't cows green like grass?


There are also text variables that are replaced by strings specific to the country. For example, the percent sign (%) indicates that name of the insurgency, while the ampersand (@) indicates the name of the capital. Thus, if we use Peru as our example, then we might get any of the following headlines:

    Members of the Sendero Luminoso fight with government troops in several remote towns.

    Anti-government guerrillas carry out attacks on the outskirts of Lima.

    Sendero Luminoso fighters launch a series of attacks on two provincial capitals.

Pretty cute, huh? But even this became tiresome after a while, so I added a provision for multiple templates for each situation. This did the job; the headlines had enough freshness and color to achieve the needed sense of realism.

The sentence generator proved to be one of the most important ideas to emerge from the Balance of Power project. In particular, the text variables concept proved amenable to considerable elaboration. I developed and refined this technology through many of my projects, especially for Siboot. It later became the basis for the concept of substories that I developed for my work in interactive storytelling. It also set me thinking about the nature and role of language, which has been a fruitful line of inquiry for my research. And it all started from a whimsical fantasy in a supermarket checkout line.


Read! Read! Read!


Research

Meanwhile, I was reading everything I could lay my hands on. In all, I acquired and read about 15 books as part of my research, and consulted another 12 that I had already acquired and read. These books addressed many elements that I put into the game: the mechanics of insurgency and coups d'etat, global power structures, and so forth.

Among these were The War Trap by Bruce Bueno de Mesquita, which presented a mathematical analysis of how countries get themselves sucked into wars. The ideas in this book suggested a great many algorithms, but in the end, I didn't use them. Nevertheless, reading the book proved beneficial to the project, as it clarified my thinking on a number of issues.

Also useful was Essence of Decision: Explaining the Cuban Missile Crisis, by Graham T. Allison. This book brought home to me the dramatic nature of superpower confrontation, and was the inspiration for what eventually became the Crisis feature in the game.

Not all of the books were directly useful to the creation of the game; indeed, there was very little that I found that I could simply lift out of the book and insert into the game. But all that reading stimulated my thinking on the problems of the design; ultimately, I think that it was an important factor in the overall success of the game.


© Copyright Pearson Education. All rights reserved.





Building the Map

Contents
  Introduction
  Early Efforts
  Thank You, National Enquirer
  Building the Map
  Making It a Game

  Printable version
  Discuss this article