Trying to send information to another world

Posted by Septe on Sat 10 May 2014 12:55 PM — 2 posts, 11,172 views.

USA #0
I have tried to use multiple send, a copy of SendToWorld script, and the chat module.

This is the trigger I'm using. As you can see, I have a Lua sript file that uses SendToWorld that I have pasted below from the website (not my Mushclient which doesn't allow me to copy and paste)


<trigger
   enabled="y"
   match="^\&lt;(.*?)\/(.*?)hp (.*?)\/(.*?)m (.*?)mv (.*?)xp (.*?) align (.*?) gold (.*)\&gt;$"
   regexp="y"
   send_to="12"
   sequence="100"
  >
  <send>SendToWorld ("Bandersnatch", "&lt;%1/%2hp %3/%4m %5mv %6xp %7 align %8 gold %9&gt;")</send>
  </trigger>

function SendToWorld (name, message)

local otherworld

  otherworld = GetWorld (name)

  if otherworld == nil then
    Note ("World " .. name .. " is not open")
    return
  end

  Send (otherworld, message)

  -- alternative syntax:   otherworld:Send (message)

end -- of SendToWorld


I've also tried the Chat system which isn't really what I was looking for. I've tried the multiple send.

What is happening is that it sends the information to the other world directly to the mud which replies, "Huh?" Is there a way to send the information without sending it to the mud of that world?
Amended on Sat 10 May 2014 01:45 PM by Septe
USA #1
Ok, I solved it. After reading and rereading the functions list carefully, it dawned on me that It's not Send that I wanted in that script. It's Note.