Greetings all, I am having an issue with AddTriggerEX, it seems not to suport the flag, repeat. I have right now:
As you can see I have "561" for the trigger flags, is there a code number for adding "repeat", "true" to that??
or Do I need to use
Id I do need to use that syntax, what is the correct form for Python? I have tried setting the contents to "y", "Y", "1", "true", 1, and y. :D none of them seem to work.
Any advice or pointers in the correct way, would be most helpful.
--Rakon
EDIT<Reason:Darn code tags :P>
EDIT<Reason: Put replace, instaed of repeat>
def CreateList(name,output, wildcards):
CheckName = world.IsTrigger(wildcards[0] + "List")
world.Note(CheckName)
if CheckName == 30005:
world.SetVariable(wildcards[0], " ")
ListName = world.GetVariable(wildcards[0])
trigger = ("(@!" + wildcards[0] + ")")
world.AddTriggerEx (wildcards[0] + "List", trigger, "",561,wildcards[1], 0, "", "", 0, 100)
world.ColourNote("white", "","\n" + " "*5 + "List with name " + wildcards[0] + " created.")
elif CheckName == 0:
world.ColourNote("white", "", "\n" + " "*5 + "Sorry, but the list " + wildcards[0] + " already exist. Please try another name.")
else:
world.ColourNote("white", "", "\n" + " "*5 + "There was an error trying to create the list, please try it agian.")
As you can see I have "561" for the trigger flags, is there a code number for adding "repeat", "true" to that??
or Do I need to use
world.SetTriggerOption(trigger, "repeat", "1")
Id I do need to use that syntax, what is the correct form for Python? I have tried setting the contents to "y", "Y", "1", "true", 1, and y. :D none of them seem to work.
Any advice or pointers in the correct way, would be most helpful.
--Rakon
EDIT<Reason:Darn code tags :P>
EDIT<Reason: Put replace, instaed of repeat>