The code ends like this:
Code: Select all
town_names {
styles : string(STR_STYLES);
{
town_names(one,3)
}
{
town_names(two,3)
}
{
town_names(three,3)
}
}
When ending the code like this:
Code: Select all
town_names {
styles : string(STR_STYLES);
{
town_names(one,3)
}
{
town_names(two,3)
}
{
town_names(three,3)
}
}
town_names {
styles : string(STR_STYLES);
{
town_names(holyone,3)
}
{
town_names(holytwo,3)
}
}
When commenting out the first town_names block, it generates only holy towns.
I'm struggling to write an if statement, anything I have tried when looking at the tutorials or other code results in a syntax error. Ideally it generates 75 percent normal town names and 25 percent holy town names.