Flag IDs: Difference between revisions

From Spiral Framework
Jump to navigation Jump to search
No edit summary
No edit summary
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
Flags can be manipulated with the opcode:
Flags can be manipulated with the opcode:
<pre>Set Flag|[Group], [ID], [State]</pre>
<pre>Set Flag|[Group], [ID], [State]</pre>
It is also possible to check flag states however the usage of the opcode is currently not properly known.


In most cases, setting a flag to '''0''' will disable it and setting it to '''1''' will enable it.
Flags may be checked with the op code:
<pre>Check Flag A|[Group], [ID], [Comparison], [State]</pre>
 
{{todo|Verify that flags are always referenced as 0 and 1}}
Flags operate on a '''truthy''' value system, where 0 is false/disabled, and any other value is true/enabled.
 
Flags seem to be global, so setting a flag in one script will keep it set to that elsewhere.
 
==Flag Checks==
Checking flags is usually used to ensure a one time event isn't repeated, or that once something is "obtained" that it stays obtained.
 
To check a flag, use the op code above, followed by a <pre>End Flag Check</pre>
 
There are two forms of comparison currently documented - equal, and not equal.
 
These do as they say on the tin. The "equal" comparison checks if the current value for the flag equals the value provided for the check, and the "not equal" comparison checks if the value does not equal the provided one.
 
To signify an equals check, the comparison value should be set to '''1''', while "not equal" comparisons should use '''0'''.


==''Shared Between Both Games''==
==''Shared Between Both Games''==
{{todo|Important flags to find: Save/Load enable}}
{{todo|Important flags to find: }}
{{Needstestingdr2}}
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 28: Line 45:
|Unknown, likely handbook related
|Unknown, likely handbook related
|None
|None
|-
|-
|-
|0
|0
|7
|7
|Saving/Loading
|Saving/Loading
|None
|-
|1
|0 -> 8
|Unlocks different maps in the handbook
|None
|None
|-
|-
Line 41: Line 62:
|}
|}


[[Category:Danganronpa: Trigger Happy Havoc]] [[Category:Danganronpa 2: Goodbye Despair]] [[Category:ID Listings]]
[[Category:Danganronpa: Trigger Happy Havoc]] [[Category:Danganronpa 2: Goodbye Despair]] [[Category:ID Listings]] [[Category:Opcodes]]

Latest revision as of 00:01, 21 February 2020

Flags can be manipulated with the opcode:

Set Flag|[Group], [ID], [State]

Flags may be checked with the op code:

Check Flag A|[Group], [ID], [Comparison], [State]
Hmmm...
To do:
Verify that flags are always referenced as 0 and 1

Flags operate on a truthy value system, where 0 is false/disabled, and any other value is true/enabled.

Flags seem to be global, so setting a flag in one script will keep it set to that elsewhere.

Flag Checks

Checking flags is usually used to ensure a one time event isn't repeated, or that once something is "obtained" that it stays obtained.

To check a flag, use the op code above, followed by a

End Flag Check

There are two forms of comparison currently documented - equal, and not equal.

These do as they say on the tin. The "equal" comparison checks if the current value for the flag equals the value provided for the check, and the "not equal" comparison checks if the value does not equal the provided one.

To signify an equals check, the comparison value should be set to 1, while "not equal" comparisons should use 0.

Shared Between Both Games

Hmmm...
To do:
Important flags to find:
Hmmm...
Needs testing in DR2
This information has only been researched in Danganronpa: Trigger Happy Havoc and requires testing in Danganronpa 2: Goodbye Despair
Flag Group Flag ID Flag Name Notes
0 4 eHandbook and Transcript None
0 5 Map None
0 6 Unknown, likely handbook related None
0 7 Saving/Loading None
1 0 -> 8 Unlocks different maps in the handbook None
15 32 Unknown This flag is set to 0 in many places however never gets set to 1. Effects unknown, setting it to 1 doesn't seem to do anything. I think perhaps this flag is automatically set to 1 every something happens and setting it to 0 disables something but I'm not sure.