sent to variable....

Posted by Searching on Tue 15 Mar 2005 04:37 AM — 6 posts, 19,587 views.

#0
this problem is about multi-line trigger, i catch 2 or more lines as a single variable.
if i use send to variable in trigger window, i can only transfer 1 varbile, if i use send to script, for ex. world.setvariable "temp" %1, there is always an error, because there are somme "\n"(Chr(10)) in %1.
if i will transfer 2 or more variable, how can i do?
Australia Forum Administrator #1
An interesting question.

You may have to call a script subroutine, and set the variable in that. In that case you are moving variables around without quoting them, so the newlines will work.
#2
call a script subroutine....

if you can give me an exemple... thanks
#3
fantastic! i can do it! Name wildcards in trigger and use script routine GetTriggerWildcard ...
USA #4
Why can't he just quote the %1?

And you don't need to use gettriggerwildcards you can use the array that gets passed to the subroutine.
Sub (sName,sLine,aryWilds)
the aryWilds is an array of the wildcards from your trigger, saves you from having to use a function whenever you want to reference them.

On a side note- Egads! Nicks not dead!
#5
you are right, Flannel !