Difference between revisions of "Chat bubble"

From Unofficial QEdit Wiki Guide
Jump to: navigation, search
 
Line 8: Line 8:
 
==Use==
 
==Use==
 
Used to display a chat bubble message from the character id defined in the T_DWORD of this opcode.
 
Used to display a chat bubble message from the character id defined in the T_DWORD of this opcode.
 
Note: About closing chat_bubble, just like a normal entered message from a player they will automatically close themselves after a few seconds. So no winend or mesend should be needed.
 
  
 
==Example==
 
==Example==
 
  <span style='font-size:12px;font-family:courier'>
 
  <span style='font-size:12px;font-family:courier'>
  <span style='color:blue'>100:    </span><span style='color:red'>chat_bubble </span>00000000, chat_bubble<cr>message test. <span style='color:orange'>//Displays a chat bubble message from character id 00000000.</span>
+
  <span style='color:blue'>100:    </span><span style='color:green'>get_slotnumber </span>R250 <span style='color:orange'>//Stores the players slot number in register 250.</span>
 +
<span style='color:green'>        ret </span>
 +
<span style='color:blue'>101:    </span><span style='color:red'>chat_bubble </span>00000000, chat_bubble<cr>message test. <span style='color:orange'>//Displays a chat bubble message from character id 00000000.</span>
 +
<span style='color:red'>        close_chat_bubble </span>R250 <span style='color:orange'>//Closes the chat bubble.</span>
 
  <span style='color:green'>        ret </span>
 
  <span style='color:green'>        ret </span>
 
  </span>
 
  </span>
  
 
==Also see==
 
==Also see==
[[ret]]
+
[[get-slotnumber]], [[ret]] [[close_chat_bubble]]

Revision as of 21:34, 23 May 2013

Syntax

Syntax: chat_bubble T_DWORD, T_STR

  • T_DWORD = Hex value of the character id to say the chat_bubble message.
  • T_STR = Text string what you want your message to say goes here.

Use

Used to display a chat bubble message from the character id defined in the T_DWORD of this opcode.

Example


100:     get_slotnumber R250 //Stores the players slot number in register 250.
         ret 
101:     chat_bubble 00000000, chat_bubble<cr>message test. //Displays a chat bubble message from character id 00000000.
         close_chat_bubble R250 //Closes the chat bubble.
         ret 

Also see

get-slotnumber, ret close_chat_bubble