Register forum user name Search FAQ

Gammon Forum

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 ➜ VBscript ➜ Problem with max items sent to a script.

Problem with max items sent to a script.

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Edgeofforever   (25 posts)  Bio
Date Wed 05 Jan 2005 05:31 PM (UTC)
Message
I have a trigger that sends 12 variables to a script, but when I try to access thewildcards(11) I get an error. Is there a limit to the number of variables you can send to a script?

Any help would be appriciated.
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 05 Jan 2005 07:11 PM (UTC)
Message
Read the documentation on triggers - it describes your problem exactly and how to fix it.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Edgeofforever   (25 posts)  Bio
Date Reply #2 on Wed 05 Jan 2005 07:23 PM (UTC)
Message
I see how that would fix my problem, but It still doesnt work, it's giving me an error from the line

GetTriggerWildcard(10)

"argument not optional"

I'm not sure what this means.
Top

Posted by Flannel   USA  (1,230 posts)  Bio
Date Reply #3 on Wed 05 Jan 2005 08:23 PM (UTC)
Message
You need the trigger name.
(http://www.gammon.com.au/scripts/function.php?name=GetTriggerWildcard for more information)

Are you doing this from within the trigger (in the send box)? If so, you just use %<10>.

If its within a subroutine (called by the trigger) then you can either hardcode the trigger name, or use the variable you passed with the subroutine.

sub (sName,sLine,aryWild)
note GetTriggerWildcard(sName, 10)
end sub

~Flannel

Messiah of Rose
Eternity's Trials.

Clones are people two.
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.


16,456 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.