As this shouldn't happen often it doesn't
overly need to be optimized and a midnight
kludge will work. :P
Assumes you only see the red
trigger once. Change it if there is another
trigger indicator to start the process.
#TRIGGER {^One of the 4 Time-agents is standing here.$} {
#ECHO Time-agent script on
#T+ TimeAgent
#VAR V_Code "****"
}
Assumes agent 2 3 4 gives the codes
#TRIGGER {^Your blood freezes as you hear the Time
~-agent{1|2|3}~'s death cry.} {
say code
} "TimeAgent"
Assumes the agents can give any spot from
position 1 through 4:
#TRIGGER {^The Time-agent{2|3|4} says ~'The (%w) digit is (%d).~'} {
#IF (%1 =~ "first") {#VAR V_Code %concat
(%1,%copy(@V_Code,2,4))}
#IF (%1 =~ "second") {#VAR V_Code %concat
("%copy(@V_Code,1,1),%1,%copy(@V_Code,3,4))}
#IF (%1 =~ "third") {#VAR V_Code %concat
(%copy(@V_Code,1,2),%1,%copy(@V_Code,4,4))}
#IF (%1 =~ "forth") {#VAR V_Code %concat
(%copy(@V_Code,1,3),%1)}
} "TimeAgent"
Spits out all posibilities 0-9
#TRIGGER {^A very, very odd room.$} {
#10 enter %replace(@V_Code,"*",[%i-1])
#ECHO Time-agent script off
#T- TimeAgent
} "TimeAgent"
Untested but the idea should be there.
TonDiening
Uses 6.16