I've got a problem! Again!
I've got this piece of script, which works in the IMMEDIATE mode, but refuses to work while put into a trigger:
///
set re = new regexp
stringe = "You remove 1 goldenseal root, bringing the total in the Rift to 38."
With re
.Pattern = "^(You remove) (\d|\d\d|\d\d\d|\d\d\d\d) (goldenseal root, bringing the total in the Rift to) (\d|\d\d|\d\d\d|\d\d\d\d)(.)$"
.IgnoreCase = False
.Global = False
End With
ma = re.test(stringe)
world.note ma
world.enabletrigger "GoldensealOUTR", "true"
///
Basically it's supposed to give out -1 and it does, in immediate mode. However, once I insert it into a trigger and make it fire, it gives out 0. Help?
I've got this piece of script, which works in the IMMEDIATE mode, but refuses to work while put into a trigger:
///
set re = new regexp
stringe = "You remove 1 goldenseal root, bringing the total in the Rift to 38."
With re
.Pattern = "^(You remove) (\d|\d\d|\d\d\d|\d\d\d\d) (goldenseal root, bringing the total in the Rift to) (\d|\d\d|\d\d\d|\d\d\d\d)(.)$"
.IgnoreCase = False
.Global = False
End With
ma = re.test(stringe)
world.note ma
world.enabletrigger "GoldensealOUTR", "true"
///
Basically it's supposed to give out -1 and it does, in immediate mode. However, once I insert it into a trigger and make it fire, it gives out 0. Help?