Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » zMUD General Discussion
Ins0mniak
Apprentice


Joined: 27 Apr 2001
Posts: 110

PostPosted: Thu Feb 07, 2002 10:26 pm   

Variable to another session?
 
Hi... i am trying to send a variable from one session to another, but can't seem to find any way to do it...
:window:#SHOW @OtherWindowVariable does not work, because it looks for that variable in the window i am trying to send it to. Any help?
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Thu Feb 07, 2002 10:49 pm   
 
From within session1 type:

:session2:#SH @session1.OtherWindowVariable


TonDiening
Uses 6.16
Reply with quote
Ins0mniak
Apprentice


Joined: 27 Apr 2001
Posts: 110

PostPosted: Thu Feb 07, 2002 11:20 pm   
 
thank you so much!
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Fri Feb 08, 2002 5:52 am   
 
As a side note I don't think anyone figured
out how to pass a %function value to another
session without creating a variable.

iljhar was working on an idea passing %ctime
I believe 3+ months back.



TonDiening
Uses 6.16
Reply with quote
iljhar
GURU


Joined: 10 Oct 2000
Posts: 1116
Location: USA

PostPosted: Fri Feb 08, 2002 7:17 am   
 
someone mention my name? :)

Yeah, I was trying to do some funky stuff and couldn't get it to work so I just had to find a work-around. Maybe I'll try to play with it again, see if I can't get it to work. If I can, you know you'll be seeing a new topic about it! ;)

Iljhar
Reply with quote
Vijilante
SubAdmin


Joined: 18 Nov 2001
Posts: 5182

PostPosted: Sat Feb 09, 2002 5:56 am   
 
Hrm didn't know the @sessioname.whathaveyou worked. Oh well to answer how to pass functions and things like ctime just use a modified version of my work around for verbatim mode commands "#EXEC %expand(:TargetSession:%ctime)" also works for variables. There always is the WINDOW command too "#WINDOW TargetSession {triggerable text here %ctime}". Of course you have to use a trigger with that in order to do anything useful.
Reply with quote
TonDiening
GURU


Joined: 26 Jul 2001
Posts: 1958
Location: Canada

PostPosted: Mon Feb 11, 2002 4:42 am   
 
Vijilante, very nice. Thanks for pointing
that out.

Solves that problem for me!

#EXEC %expand(:sessionname:#SH Far side: %ctime)

TonDiening
Uses 6.16
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » zMUD General Discussion All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net