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 ➜ General ➜ Mushclient (variable/table),Help!!!

Mushclient (variable/table),Help!!!

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


Posted by Randomcho   China  (9 posts)  Bio
Date Fri 05 Jul 2013 01:21 PM (UTC)

Amended on Fri 05 Jul 2013 02:04 PM (UTC) by Randomcho

Message
Sorry for my bad english.

example:
I open two world in a mushclient.
I want make a (variable or table),it can use in world 1,also it can use in world 2.
The variable/table can edit by world 1,also can edit by world 2.
I know use GetWorldById(v):Execute(d) can achieve
,but i want a simple method.
help!

Another quest,how can i get a variable/table which in other mushclient?
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #1 on Sun 07 Jul 2013 07:06 AM (UTC)
Message
Maybe:

GetWorldById(v):SetVariable(d)

- Nick Gammon

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

Posted by Randomcho   China  (9 posts)  Bio
Date Reply #2 on Tue 09 Jul 2013 05:42 AM (UTC)

Amended on Tue 09 Jul 2013 05:54 AM (UTC) by Randomcho

Message
GetWorldById(v):SetVariable(d)??
GetWorldById(v):SetVariable("x",y)?
i think y is this world's lua var.
GetWorldByID,i think other world have no variable y!!
So u can not use SetVariable("x",y)

for example:
there is 2 world(aaa and bbb)
In world aaa,i make a trigger:
tianji say now task is kill (\S+)
target = "%1"

now,in world aaa,i want send the variable 'target' to world bbb!
How can i do?
GetWorldById(bbb):SetVariable("target",target)?
I think in world bbb,variable target = nil
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.


10,659 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.