Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions docs/developer-docs/flags/addhits-subhits.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ description: Master the use of AddHits and SubHits flags to manage hit counts in

# `AddHits` and `SubHits`

**NOTE**: This technique is not needed for simple games, so it is not mandatory for jr-devs.

`AddHits` and `SubHits` can be chosen in the Flag column of the Achievement Editor.

The `AddHits`/`SubHits` conditions do not have to be true for the achievement to trigger. They modify the [hit count](/developer-docs/hit-counts) of another condition, which does have to be true for the achievement to trigger. The sequence of conditions is referred to as a `AddHits` chain (even if it contains `SubHits`).
Expand Down
4 changes: 1 addition & 3 deletions docs/developer-docs/flags/addsource.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ description: Learn how to effectively use the AddSource flag to manage accumulat

# `AddSource`

_**Note**: most likely this technique is not needed for simple games. So, it's not mandatory for jr-devs._

The `AddSource` can be chosen in the Flag column of the Achievement Editor
The `AddSource` can be chosen in the Flag column of the Achievement Editor.

When a condition has the `AddSource` flag, the value on that memory address is added to the accumulator. When a condition is reached that does not modify the accumulator, the accumulator is added to value of the address on that condition before the comparison is made, and the accumulator will be reset to 0. It may sound a bit confusing, but the example below will clarify how this works:

Expand Down
4 changes: 1 addition & 3 deletions docs/developer-docs/flags/subsource.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ description: Learn how to effectively use the SubSource flag to subtract values

# `SubSource`

_**Note**: most likely this technique is not needed for simple games. So, it's not mandatory for jr-devs._

The `SubSource` can be chosen in the Flag column of the Achievement Editor
The `SubSource` can be chosen in the Flag column of the Achievement Editor.

Works similarly to [`AddSource`](/developer-docs/flags/addsource), but the `SubSource` flag subtracts the calculated value from the accumulator.

Expand Down
Loading