need help trying to select a single random direction from the variable i pull from the line in game. i think i'm headed in the right direction with my trigger here but insight suggestions would be helpful:
<triggers>
<trigger
enabled="y"
expand_variables="y"
keep_evaluating="y"
match="Visible Exits\: (.*?)$"
regexp="y"
send_to="12"
sequence="100"
>
<send>Note ("this worked, variable is %1")
RDir = GetVariable ("RDir")
SetVariable ("RDir", "%1")
t = utils.split (RDir, " ")
Note (table.concat (t, "|"))
--this all works, i'm currently trying to build it so it picks a random exit from the list.</send>
</trigger>
</triggers>