Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Next revisionBoth sides next revision
mudlet:chat_capture_window [2021/06/26 18:05] – external edit 127.0.0.1mudlet:chat_capture_window [2021/07/11 20:37] – Further clarifications paradox
Line 1: Line 1:
 ====== Chat Capture Window Mudlet Script ====== ====== Chat Capture Window Mudlet Script ======
 +  - Open the "scripts" setting page and create a new one.  
 +  - Give it a name, like //"Chat Capture Window"//
 +  - In //"Registered Event Handlers"// enter : <code>sysConnectionEvent</code>
 +  - Copy in the following source code to the text area.<code>
 +function make_chat_window()
 +  chat_window = Geyser.UserWindow:new({
 +    name = "chat_window",
 +    titleText = "CHATS",
 +    docked = true,
 +    height = "5c",
 +    dockPosition = "top",
 +  })
 +  chat_window:setFontSize(getFontSize())
 +  return 1
 +end
  
-  Open the "scriptssetting page and create a new one. Copy the picture below exactly{{mudlet:screen_shot_2021-03-29_at_6.14.32_pm.png}} +make_chat_window() 
-  - Open the "triggers" setting page and create a new one. Copy the picture below exactly.{{mudlet:screen_shot_2021-03-29_at_6.14.53_pm.png}}+</code> 
 +  Your scripts setting pages should now look exactly like this: {{mudlet:screen_shot_2021-03-29_at_6.14.32_pm.png}} 
 +  - Open the "triggers" setting page and create a new one.  
 +  - Give it a name like //"Chat Capture"//
 +  - In the first pattern, enter a channel name as it appears in game: <code>[chat]</code> 
 +  - Leave everything else empty. 
 +  - Copy in the following code to the textarea: <code> 
 +  if(chat_window) 
 +  then 
 +    selectCurrentLine() 
 +    copy() 
 +    chat_window:appendBuffer() 
 +  end 
 +</code> 
 +  - Your triggers settings page should now look exactly like this: {{mudlet:screen_shot_2021-03-29_at_6.14.53_pm.png}}
   - You may need to reconnect to the MUD to get the window to appear.    - You may need to reconnect to the MUD to get the window to appear. 
   - Add other patterns to the trigger for other channels as desired.   - Add other patterns to the trigger for other channels as desired.