Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are
spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the
password reset link.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUSHclient
➜ General
➜ sent to variable....
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Searching
(5 posts) Bio
|
| Date
| Tue 15 Mar 2005 04:37 AM (UTC) |
| Message
| 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? | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 15 Mar 2005 05:56 AM (UTC) |
| Message
| 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. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Searching
(5 posts) Bio
|
| Date
| Reply #2 on Tue 15 Mar 2005 07:14 AM (UTC) |
| Message
| call a script subroutine....
if you can give me an exemple... thanks | | Top |
|
| Posted by
| Searching
(5 posts) Bio
|
| Date
| Reply #3 on Tue 15 Mar 2005 07:39 AM (UTC) |
| Message
| | fantastic! i can do it! Name wildcards in trigger and use script routine GetTriggerWildcard ... | | Top |
|
| Posted by
| Flannel
USA (1,230 posts) Bio
|
| Date
| Reply #4 on Tue 15 Mar 2005 07:44 AM (UTC) |
| Message
| 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!
|
~Flannel
Messiah of Rose
Eternity's Trials.
Clones are people two. | | Top |
|
| Posted by
| Searching
(5 posts) Bio
|
| Date
| Reply #5 on Tue 15 Mar 2005 07:56 AM (UTC) |
| Message
| | you are right, Flannel ! | | Top |
|
The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).
To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.
18,573 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top