I used the book's script set up to call up one of several predefined responses when left clicking on a regional entity:
var mountaindescribe;
mountaindescribe[0] = "Those mountains look gorgeous from out here. Probably a pain and a half to climb, though.";
mountaindescribe[1] = "That song that mentions purple mountain majesties...they never saw this.";
mountaindescribe[2] = "Never was one for rock climbing. I'd rather just kick something in a gym.";
mountaindescribe[3] = "Staring at those mountains makes me hungry. I don't know why it makes me hungry. Maybe because I'm hungry all the time...";
mountaindescribe[4] = "What a boring view. Never changes, nothing dynamic. No wonder I prefer TV.";
var rdffg = Random(0,4);
on "Leftclick"
{
Game.Msg(mountaindescribe[rdffg]);
}
Instead of getting a random response each time I click, instead, I get the same response every time in a session, which changes each time I reload the game. What am I doing wrong?