Difference between revisions of "FF7/Field/Script/Opcodes/C8 PRTYP"
Jump to navigation
Jump to search
my_wiki>Synergy Blades (So that's how you edit a redirect...) |
my_wiki>BukTop (Created page with "* Opcode: '''0xC8''' * Short name: '''PRTYP''' * Long name: Party Add ==== Memory layout ==== {| style="border: 1px solid black; border-collapse: collapse" border="1" cell...") |
||
Line 3: | Line 3: | ||
* Long name: Party Add | * Long name: Party Add | ||
− | ==== Memory layout ==== | + | ==== Memory layout ==== |
− | {| border="1" cellspacing="1" cellpadding="3 | + | |
+ | {| style="border: 1px solid black; border-collapse: collapse" border="1" cellspacing="1" cellpadding="3" | ||
! width="40" | 0xC8 | ! width="40" | 0xC8 | ||
! width="40" | ''C'' | ! width="40" | ''C'' | ||
|} | |} | ||
− | ==== Arguments ==== | + | ==== Arguments ==== |
− | * '''const UByte''' ''C'': Character ID to add. | + | * '''const UByte''' ''C''<nowiki>: Character ID to add. </nowiki> |
− | ==== Description ==== | + | ==== Description ==== |
− | Adds a character to the party, given by ''C''. The character is added in the first given empty party slot (which can be set by [[FF7/Field/Script/Opcodes/ | + | Adds a character to the party, given by ''C''. The character is added in the first given empty party slot (which can be set by [[FF7/Field/Script/Opcodes/CA_PRTYE|PRTYE]] and an argument of FE for a slot). If there are no party members, the newly added character is the leader; if there is only the leader in the party, the newly added character occupies the second slot; if there are two members, the character occupies the last remaining slot. If the opcode is used when there is already a full party (with three members), the newly added party member occupies the last slot, overwriting the party member already there. |
Revision as of 18:13, 24 March 2018
- Opcode: 0xC8
- Short name: PRTYP
- Long name: Party Add
Memory layout
0xC8 | C |
---|
Arguments
- const UByte C: Character ID to add.
Description
Adds a character to the party, given by C. The character is added in the first given empty party slot (which can be set by PRTYE and an argument of FE for a slot). If there are no party members, the newly added character is the leader; if there is only the leader in the party, the newly added character occupies the second slot; if there are two members, the character occupies the last remaining slot. If the opcode is used when there is already a full party (with three members), the newly added party member occupies the last slot, overwriting the party member already there.