Difference between revisions of "Symbol chat create"
(→Use: Wow I really put '16 bytes' instead of '16 bits') |
|||
Line 21: | Line 21: | ||
<span style='color:green'> leti </span>R5, 00090000 | <span style='color:green'> leti </span>R5, 00090000 | ||
− | Alternatively, if the lock value is not an immediate value, you could shift the value 16 | + | Alternatively, if the lock value is not an immediate value, you could shift the value 16 bits to the left. Suppose R5 already has the switch value. |
<span style='color:green'> let </span>R60, 00000010 | <span style='color:green'> let </span>R60, 00000010 | ||
<span style='color:green'> shift_left </span>R5, R60 | <span style='color:green'> shift_left </span>R5, R60 |
Revision as of 07:02, 14 November 2023
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 bits 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.
NOTE#2: The first 12 bytes for the Symbol Chat Hex will need to be flipped for the GC version due to a Endian issue. As of 10/17/23, Qedit will produce a correct Symbol chat for BB & Xbox, but not GC. Once you've flipped the first 12 bytes, it will be correct for GC. Example below:
HEX: E8 FD 00 00 51 01 FF 00 FF 00 FF 00 1E 16 19 00 (BB/Xbox Version) HEX: 00 00 FD E8 01 51 00 FF 00 FF 00 FF 1E 16 19 00 (GC Version)