diff --git a/src/uncategorized/randomIndividualEvent.tw b/src/uncategorized/randomIndividualEvent.tw index cfe97dc34044163f36e491f64a9fee6acc7fcadf..9c96f66ecc5e52227d8d78c7b74df0bb0eff9510 100644 --- a/src/uncategorized/randomIndividualEvent.tw +++ b/src/uncategorized/randomIndividualEvent.tw @@ -8,7 +8,17 @@ ''One of the following eligible slaves would have been selected for an individual random event:'' <br> <<for $i = 0; $i < $eligibleSlaves.length; $i++>> - <br><<print "[[$eligibleSlaves[$i].slaveName|Random Individual Event][$eventSlave = $eligibleSlaves[" + $i + "]]]">> + <<if $eligibleSlaves[$i].slaveSurname>> + <<switch $eligibleSlaves[$i].nationality>> + <<case "Chinese" "Japanese" "Korean" "Cambodian" "Vietnamese" "Hungarian" "Mongolian">> + <<set _slaveName = $eligibleSlaves[$i].slaveSurname + " " + $eligibleSlaves[$i].slaveName>> + <<default>> + <<set _slaveName = $eligibleSlaves[$i].slaveName + " " + $eligibleSlaves[$i].slaveSurname>> + <</switch>> + <<else>> + <<set _slaveName = $eligibleSlaves[$i].slaveName>> + <</if>> + <br><<print "[[_slaveName|Random Individual Event][$eventSlave = $eligibleSlaves[" + $i + "]]]">> <</for>> <br><br>[[Switch to Random Nonindividual Event|Random Nonindividual Event][$activeSlave = 0, $eventSlave = 0]] <<else>>