Difference between revisions of "Symbol chat create"
From Unofficial QEdit Wiki Guide
(Created page with "==Syntax== ''Syntax:'' <span style='font-size:12px;font-family:courier'><span style='color:blue'>symbol_chat_create </span>register</span> * ''register'' = Starting register...") |
(→Use) |
||
Line 11: | Line 11: | ||
*Register 3 : Z coordinate | *Register 3 : Z coordinate | ||
*Register 4 : Radius | *Register 4 : Radius | ||
− | *Register 5 : | + | *Register 5 : The first Lock ID is in the upper two bytes of this register. |
− | *Register 6 : | + | *Register 6 : The second Lock ID is in the upper two bytes of this register. |
− | *Register 7 : | + | *Register 7 : The third Lock ID is in the upper two bytes of this register. |
− | *Register 8 : [[HEX]] Function to be called for first symbol chat | + | *Register 8 : [[HEX]] Function to be called for first symbol chat. |
*Register 9 : [[HEX]] Function to be called for second symbol chat | *Register 9 : [[HEX]] Function to be called for second symbol chat | ||
*Register 10 : [[HEX]] Function to be called for third symbol chat | *Register 10 : [[HEX]] Function to be called for third symbol chat | ||
+ | You can specify the lock registers two different ways. Using lock 9 as an example. | ||
+ | <span style='color:green'> leti </span>R5, 00090000 | ||
+ | |||
+ | Alternatively, if the lock value is not an immediate value, you could shift the value 16 bytes to the left. Suppose R5 already has the switch value. | ||
+ | <span style='color:green'> let </span>R60, 00000010 | ||
+ | <span style='color:green'> shift_left </span>R5, R60 | ||
+ | |||
+ | The [[HEX]] labels for the symbol chats include all of the symbol chat data starting from the byte that stores the face type, face color, and sound effect. | ||
NOTE: There's a priority for the locks. If you Lock the second lock in the 6th register, both the first and second symbol chats will be disabled and the 3rd one will appear. If the 3rd lock is locked, then none of the symbol chats appear. | NOTE: There's a priority for the locks. If you Lock the second lock in the 6th register, both the first and second symbol chats will be disabled and the 3rd one will appear. If the 3rd lock is locked, then none of the symbol chats appear. |
Revision as of 21:34, 10 June 2022
Syntax
Syntax: symbol_chat_create register
- register = Starting register in a set of 10, this denotes the location and params of the symbol chats, and locks associated with it
Use
Places a custom symbol chat(s) in a specific place.
- Register 1 : X coordinate
- Register 2 : Y coordinate
- Register 3 : Z coordinate
- Register 4 : Radius
- Register 5 : The first Lock ID is in the upper two bytes of this register.
- Register 6 : The second Lock ID is in the upper two bytes of this register.
- Register 7 : The third Lock ID is in the upper two bytes of this register.
- Register 8 : HEX Function to be called for first symbol chat.
- Register 9 : HEX Function to be called for second symbol chat
- Register 10 : HEX Function to be called for third symbol chat
You can specify the lock registers two different ways. Using lock 9 as an example.
leti R5, 00090000
Alternatively, if the lock value is not an immediate value, you could shift the value 16 bytes to the left. Suppose R5 already has the switch value.
let R60, 00000010 shift_left R5, R60
The HEX labels for the symbol chats include all of the symbol chat data starting from the byte that stores the face type, face color, and sound effect.
NOTE: There's a priority for the locks. If you Lock the second lock in the 6th register, both the first and second symbol chats will be disabled and the 3rd one will appear. If the 3rd lock is locked, then none of the symbol chats appear.