Opcodes: Difference between revisions

From Spiral Framework
Jump to navigation Jump to search
(Created page with "Opcodes are the commands used in LIN scripts to make things happen in the game. == Set Title == The Set Title opcode is used in scripts to change the Special Ability of a gi...")
 
Line 24: Line 24:
=== Notes ===
=== 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.
* 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 when the Ultimate Hope truth bullet is obtained, the code sets Makoto's Special Ability to what's contained in file 15, which reads Ultimate Despair when it should be set to Ultimate Hope.
* 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.

Revision as of 12:55, 22 March 2018

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


Set Title

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.