Mushclient (variable/table),Help!!!

Posted by Randomcho on Fri 05 Jul 2013 01:21 PM — 3 posts, 13,446 views.

China #0
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?
Amended on Fri 05 Jul 2013 02:04 PM by Randomcho
Australia Forum Administrator #1
Maybe:

GetWorldById(v):SetVariable(d)
China #2
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