Opcodes

From Spiral Framework
Revision as of 12:48, 22 March 2018 by UnknownGlaze (talk | contribs) (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...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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 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.