Unknown2006-09-01 01:41:11
Ok, so, what I'm trying to do is create a trigger on the fly via another trigger/alias that has an actual script command in it, and i'm having trouble because of the quotation marks. I'm using VBscript language.
world.AddTriggerEx "", "Test", "world.Note ("Testing.")", 1, 3, 0, "", "", 12, 95
Its current form doesn't work, and i've tried a view variances of it..but I can't seem to manage it. I know its probably something simple, but i'm completely blanking.
Taking off the quotations from around the:
world.Note ("Testing.")
just causes the world.Note to fire and ends up creating a blank trigger.
Any help would be much appreciated.
CODE
world.AddTriggerEx "", "Test", "world.Note ("Testing.")", 1, 3, 0, "", "", 12, 95
Its current form doesn't work, and i've tried a view variances of it..but I can't seem to manage it. I know its probably something simple, but i'm completely blanking.
Taking off the quotations from around the:
world.Note ("Testing.")
just causes the world.Note to fire and ends up creating a blank trigger.
Any help would be much appreciated.
Unknown2006-09-01 02:03:07
Your problem might be that you need to use double-quotes inside quotes, like this:
world.AddTriggerEx "", "Test", "world.Note (""Testing."")", 1, 3, 0, "", "", 12, 95
world.AddTriggerEx "", "Test", "world.Note (""Testing."")", 1, 3, 0, "", "", 12, 95
Unknown2006-09-01 02:37:22
QUOTE(vale_kant @ Aug 31 2006, 07:03 PM) 326415
Your problem might be that you need to use double-quotes inside quotes, like this:
world.AddTriggerEx "", "Test", "world.Note (""Testing."")", 1, 3, 0, "", "", 12, 95
That would be the problem. Thanks! I knew it was something simple, but I couldn't find any of my old scripts that did the same thing, and my memory decided to take a walk today.