lotrointerface.com
Search Downloads


Go Back   LoTROInterface > LotRO > Developer Discussions > Lua Programming Help (L)

Reply
Thread Tools Display Modes
  #1  
Unread 11-26-2011, 03:29 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Cross apartment communication

Is it possible to send variable values across plugin apartments?
__________________
************************************************** ************************************************** **
"Our ideals may never be realised, But they indicate what we are trying to do." Dick Tahta
Reply With Quote
  #2  
Unread 11-26-2011, 04:25 AM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 341
Not directly, but any value that you can encode in a string can be sent by encoding it in a shell command as long as the recipient is polling the commands for the value. See the latest post in the Lua for Noobs thread on the Turbine forums for a sample of this.
Reply With Quote
  #3  
Unread 11-26-2011, 04:58 AM
MrJackdaw's Avatar
MrJackdaw MrJackdaw is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Feb 2009
Location: Lancaster, England
Posts: 249
Ah, yes. This is how I was thinking of doing it. Many thanks!

EDIT: Can a slash command be passed without the user clicking a button?
__________________
************************************************** ************************************************** **
"Our ideals may never be realised, But they indicate what we are trying to do." Dick Tahta

Last edited by MrJackdaw : 11-26-2011 at 05:36 AM.
Reply With Quote
  #4  
Unread 11-26-2011, 09:51 AM
Garan's Avatar
Garan Garan is offline
The Undying
Interface Author - Click to view interfaces
 
Join Date: Oct 2010
Posts: 341
Shell commands ("slash commands") can not be activated programmatically, they can only be registered, unregistered and iterated programmatically.

You don't need an actual /command, you can monitor the Standard channel for anything generated with Turbine.Shell.WriteLine(). This is easier to implement than the shell command method. The major drawback to using this method is that it will display in the chat window instead of being transparent as the shell command method is. If you are sending lots of information or sending it frequently, it can be a little disruptive to the user. Unfortunately, the WriteLine method bypasses the process that evaluates ";" and "/" tokens so it can not activate shell commands. I have editted my Turbine forum post to mention this option.

Last edited by Garan : 11-26-2011 at 10:05 AM.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 10:00 AM.


Our Network
EQInterface | EQ2Interface | Minion | WoWInterface | ESOUI | LoTROInterface | MMOUI | Swtorui