Hello everyone, and happy new year!
I’m offering the player to accept lists of names from some languages. For latine names I got the trouble there are very few first names, so I thought to add the option to merge first names and gents names in order to create a greater list of names.
In order to minimize the story variables I’m currently trying to create a loop inside a <<link>><</link>>
macro but it doesn’t seem to work. I wonder if it’s doable, but in the event it is, what I’ve gathered up to now is that the loop itsef seems to work if not inside the aforementionned macro. Also I’m positive an <<if>><</if>>
macro inside a <<link>><</link>>
macro does work. So the main question seems like is it ok to place a <<for>><</for>>
macro inside a <<link>><</link>>
. I’d rather not make my temporary variable into a story one if possible, because in this case there wouldn’t be much need of an help.
What I’ve got so far.
StoryInit:
<<set $NomM_la to ["Agrippa","Ancus","Appius","Attius","Aulus","Caius","Caeso","Cnaeus","Decimus","Faustus","Gaius","Gnaeus","Hostus","Kaeso","Lucius","Mamercus","Manius","Marcus","Mettius","Nonus","Numa","Numerius","Octavius","Opiter","Paullus","Postumus","Primus","Proculus","Publius","Quartus","Quintus","Septimus","Sertor","Servius","Secundus","Sextus","Spurius","Statius","Tertius","Tiberius","Titus","Tullus","Vibius","Volero","Volesus","Vopiscus"]>>
<<set $NomG_la to ["Acili","Aeli","Aemili","Afrani","Anici","Anni","Antisti","Antoni","Appulei","Aquilli","Arri","Arrunti","Asini","Atili","Aufidi","Aureli","Baebia","Caecili","Caeli","Calpurni","Calvisi","Canini","Carvili","Cassi","Cati","Ceioni","Claudi","Cloeli","Coccei","Coeli","Comini","Corneli","Coruncani","Curi","Curti","Deci","Didi","Domiti","Duili","Fabi","Fanni","Flamini","Flavi","Fontei","Fulvi","Furi","Gabini","Gegani","Gelli","Genuci","Helvi","Herenni","Hermini","Horati","Hortensi","Hostili","Icili","Juli","Juni","Juventi","Laeli","Larci","Licini","Livi","Lucreti","Lutati","Maeni","Mamili","Manilius","Manli","Marci","Mari","Memmi","Meneni","Metili","Minici","Minuci","Muci","Mummi","Nauti","Noni","Norban","Nummi","Octavi","Oppi","Otacili","Papiri","Petroni","Pinari","Plauti","Poeteli","Pompei","Pomponi","Ponti","Popilli","Porci","Postumi","Quincti","Sallusti","Scriboni","Semproni","Septimi","Sergi","Servae","Servili","Sexti","Sicini","Sosi","Statili","Sulpici","Tarquini","Terenti","Titi","Ulpi","Valeri","Vergini","Veturi","Vibi","Vibulli","Viri","Vitelli","Volusi"]>>
Another passage ($Peuple_langue is set in the previous passage)
<<switch $Peuple_langue>><<case "latine">><<set $NomM to $NomM_la>><</switch>>
[...]
Votre peuple emploie la langue $Peuple_langue.<br>
<<if $Peuple_langue is "latine">><hr>Les prénoms latins sont très peu nombreux. Souhaitez-vous que les noms gentilices soient également utilisés pour dénommer les membres de votre peuple ?<table><tr><td><label><<radiobutton "_gentilices" "ajouté" checked>> Oui, je veux ajouter les noms gentilices aux prénoms.</label></td></tr>
<tr><td><label><<radiobutton "_gentilices" "rejeté">> Non, je ne veux pas ajouter les noms gentilices aux prénoms.</label></td></tr></table><</if>>
[...]
<<link "Mon choix est fait." "Votre peuple - structure sociale">><<if _gentilices is "ajouté">><<for _i to 0 ; _i < $NomG_la.length ; _i++>><<set $NomM.pushUnique($NomG_la[_i] + "us")>><<set $NomM.sort()>><</for>><</if>><</link>>
Any help would be greatly appreciated.
S