Opcodes: Difference between revisions

From Spiral Framework
Jump to navigation Jump to search
No edit summary
No edit summary
Line 3: Line 3:


== Set Title ==
== Set Title ==
LIN Hex Opcode: <code>0x0F</code>
The Set Title opcode is used in scripts to change the Special Ability of a given character. The opcode itself has three arguments:
The Set Title opcode is used in scripts to change the Special Ability of a given character. The opcode itself has three arguments:
{| class="wikitable"
{| class="wikitable"

Revision as of 13:10, 22 March 2018

Opcodes are the commands used in LIN scripts to make things happen in the game.


Set Title

LIN Hex Opcode: 0x0F The Set Title opcode is used in scripts to change the Special Ability of a given character. The opcode itself has three arguments:

Argument Purpose
1 Character ID
2 Seemingly unused
3 Special Ability Variation

The used arguments are then placed into the equation arg1 + (arg3 * 15), and the code finds the file in 10_Special.pak with the corresponding number as its title.

Examples

Set Title|10, 0, 1

When this line is read, Toko's special ability would be changed to "Ultimate Writing Prodigy and Murderous Fiend," from file 25 in 10_Special.pak.

Notes

  • This opcode should be called for every character at trial preparation screens in order to ensure that all the characters have the correct ability set at the start of trials.
  • Near the end of Trial 6 in Danganronpa 1, Makoto (Character 0) is supposed to have their special set to "Ultimate Hope". The game reads from file 15, which mistakenly contains "Ultimate Despair" instead. So, be warned that in DR1 character 15 DOES NOT use the 10_Special PAK as they do not have a report card page and thus their Special should not be included.