For some reason, when I try to use %i inside the name of a new trigger in a forall loop, it won't give me the name I need. Here's basically all it is:
#VARIABLE bool %prompt( "Yes", "Is this a new RP?") {} "Chat Capture"
#IF (@bool = "Yes") {
#VARIABLE looping %prompt( "1", "How many RPers are there currently?") {} "Chat Capture"
rpd
#LOOP @looping {
#ADDITEM rpers %prompt( "Tallas", "Who do you wish to add?")
#FORALL {@rpers} {
#CLASS {Chat Capture|%i}
#TRIGGER {~(CHAT~) '[%i]} {#CAPTURE (1) RolePlay}
#TRIGGER {~(CHAT~) [%i]} {#CAPTURE (1) RolePlay}
#CLASS 0
}
}
} {
#ADDITEM rpers %prompt( "Tallas", "Who do you wish to add?")
#FORALL {@rpers} {
#CLASS {Chat Capture|%i}
#TRIGGER {~(CHAT~) '[%i]} {#CAPTURE (1) RolePlay}}
#TRIGGER {~(CHAT~) [%i]} {#CAPTURE (1) RolePlay}
#CLASS 0
}
For some reason, all I get here where %i is in the trigger is %{i}. I've tried changing it to <<%i>>, and that had no effect either. I also tried putting single "< >" tags around it, which also yielded no results. Any ideas on how I can get this to work ?
Jez