Append, '\r\n{TXT:EDDI message received from} - {INT:EDDI message received seed}' to file 'C:\Users\XXXX\Documents\message_received.txt'
Set integer [{EDDI message received seed}_voice] value to [Saved Value]
Begin Integer Compare : [{EDDI message received seed}_voice] Equals 0
Set integer [{EDDI message received seed}_voice] value as random from 1 to 22 (save value to profile)
Append, ' {EDDI message received seed}_voice - {{EDDI message received seed}_voice}' to file 'C:\Users\XXXX\Documents\message_received.txt'
Begin Integer Compare : [{{EDDI message received seed}_voice}] Equals 1
Desktop David voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 2
Desktop Hazel voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 3
Desktop Zira voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 4
Ivona Amy voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 5
Ivona Brian voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 6
Ivona Emma voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 7
Ivona Eric voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 8
Ivona Geraint voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 9
Ivona Jennifer voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 10
Ivona Joey voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 11
Ivona Kendra voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 12
Ivona Kimberly voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 13
Ivona Nicole voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 14
Ivona Raveena voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 15
Ivona Russell voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 16
Ivona Salli voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 17
Cepstral Belle voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 18
Cepstral Dallas voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 19
MS Hayley voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 20
MS Heather voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 21
MS Heera voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 22
MS Helen voice
Say, '{TXT:EDDI message received message}'
End Condition
Else
Begin Integer Compare : [{{EDDI message received seed}_voice}] Equals 1
Desktop David voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 2
Desktop Hazel voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 3
Desktop Zira voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 4
Ivona Amy voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 5
Ivona Brian voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 6
Ivona Emma voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 7
Ivona Eric voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 8
Ivona Geraint voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 9
Ivona Jennifer voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 10
Ivona Joey voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 11
Ivona Kendra voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 12
Ivona Kimberly voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 13
Ivona Nicole voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 14
Ivona Raveena voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 15
Ivona Russell voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 16
Ivona Salli voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 17
Cepstral Belle voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 18
Cepstral Dallas voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 19
MS Hayley voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 20
MS Heather voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 21
MS Heera voice
Say, '{TXT:EDDI message received message}'
Else If Integer Compare : [{{EDDI message received seed}_voice}] Equals 22
MS Helen voice
Say, '{TXT:EDDI message received message}'
End Condition
End Condition
The command
Begin Integer Compare : [{EDDI message received seed}_voice] Equals 0
is set for "not set is 0", so that if that seed has never been seen before, it sets it.
I've also tried
Append, ' {INT:EDDI message received seed}_voice - {{INT:EDDI message received seed}_voice}' to file 'C:\Users\XXXX\Documents\message_received.txt'
and
Append, ' {INT:EDDI message received seed}_voice - {INT:{INT:EDDI message received seed}_voice}' to file 'C:\Users\XXXX\Documents\message_received.txt'
As I said, in the "Else If ..." statements, I can't use "{INT:EDDI message received seed}_voice" because it contains a colon. And I've tried those without the outside braces, as well.
The text file - which I'm only using to confirm the variables are being set - should end up looking like
System Authority Vessel - 988932465 988932465_voice 17
But its only registering the first append, missing the last two items, and the same voice is being used for every NPC:
System Authority Vessel - 988932465
Edit: What it comes down to is that I'm trying to assign a value to a dynamic retrievable variable with a name based on another changing variable.