Okay I have a trigger:
^[A-Za-z *]*\[(?:.*?)\](?:.*?) x:(?:.*?) y:(?:.*?) z:(?:.*?) r:(.*?) b:(.*?) s:(.*?) h:(.*?) S:(.*?)
you remember this don't you YEAH!
Sample of what it's trying to parse:
PS*[ps]B Alpha Mongoo x: 5 y: 5 z: 0 r: 3.3 b:298 s: 0.0 h: 0 S: S
okay,
When the script runs:
Sub Store_Contact2(thename, theoutput, theparameter)
'Inputs: Contact information from contacts last 5 items.
'Outputs: None.
'Purpose: Store contact data on target for later use.
strRange = World.GetVariable("SecContactColor") & "Range: " & World.GetVariable("PriContactColor") & Trim(theparameter(1))
strSpeed = World.GetVariable("SecContactColor") & "Speed: " & World.GetVariable("PriContactColor") & Trim(theparameter(3))
strHead = World.GetVariable("SecContactColor") & "Head: " & World.GetVariable("PriContactColor") & Trim(theparameter(4))
strStatus = World.GetVariable("SecContactColor") & "Status: " & World.GetVariable("PriContactColor") & Trim(theparameter(5))
StoreContact
End Sub
It just inputs blank values instead of
str = this stuff
so when I try using the info I am using all blank values except for the World.GetVarables.
so the Trim(theparameter(#))s are returning blanks..
Now my first question is, is the trigger correct and then why is it giving blanks back yet the script is still being run..
^[A-Za-z *]*\[(?:.*?)\](?:.*?) x:(?:.*?) y:(?:.*?) z:(?:.*?) r:(.*?) b:(.*?) s:(.*?) h:(.*?) S:(.*?)
you remember this don't you YEAH!
Sample of what it's trying to parse:
PS*[ps]B Alpha Mongoo x: 5 y: 5 z: 0 r: 3.3 b:298 s: 0.0 h: 0 S: S
okay,
When the script runs:
Sub Store_Contact2(thename, theoutput, theparameter)
'Inputs: Contact information from contacts last 5 items.
'Outputs: None.
'Purpose: Store contact data on target for later use.
strRange = World.GetVariable("SecContactColor") & "Range: " & World.GetVariable("PriContactColor") & Trim(theparameter(1))
strSpeed = World.GetVariable("SecContactColor") & "Speed: " & World.GetVariable("PriContactColor") & Trim(theparameter(3))
strHead = World.GetVariable("SecContactColor") & "Head: " & World.GetVariable("PriContactColor") & Trim(theparameter(4))
strStatus = World.GetVariable("SecContactColor") & "Status: " & World.GetVariable("PriContactColor") & Trim(theparameter(5))
StoreContact
End Sub
It just inputs blank values instead of
str = this stuff
so when I try using the info I am using all blank values except for the World.GetVarables.
so the Trim(theparameter(#))s are returning blanks..
Now my first question is, is the trigger correct and then why is it giving blanks back yet the script is still being run..