summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRangi <35663410+Rangi42@users.noreply.github.com>2018-04-24 11:50:38 -0400
committerRangi <35663410+Rangi42@users.noreply.github.com>2018-04-24 11:50:38 -0400
commitd9277de1e99db95e6817c33bfe3fd0aae507ed41 (patch)
tree16aa426269345d8362346906168013cd95b4e2b3
parentcf34d4a7f25f4df5dc362a8f374b9f0684c497df (diff)
Updated Add different kinds of new items (markdown)
-rw-r--r--Add-different-kinds-of-new-items.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/Add-different-kinds-of-new-items.md b/Add-different-kinds-of-new-items.md
index 959cd6a..7ad8acd 100644
--- a/Add-different-kinds-of-new-items.md
+++ b/Add-different-kinds-of-new-items.md
@@ -21,7 +21,7 @@ There are 256 valid item IDs, from $00 to $FF, broken into different segments:
- **$FA−$FE:** Not really usable, and of these ID values, only `ITEM_FA` is defined.
- **$FF:** `ITEM_FROM_MEM`. A special value used in some scripts to give whatever item is in `wScriptVar`, instead of a hard-coded item. (For instance, fruit trees rely on it so they don't need a separate script for each kind of Berry and Apricorn.)
-(Note that after the `add_tm`s and `add_hm`s, there are also some `add_mt`s. This macro defines more <code><i>MOVENAME</i>_TMNUM</code> constants, but not more <code>TM_<i>MOVENAME</i></code> or <code>HM_<i>MOVENAME</i></code> constants, so the moves are recognized as teachable but don't have an associated item.)
+(Note that after the `add_tm`s and `add_hm`s, there are also some `add_mt`s. This macro defines more <code><i>MOVENAME</i>\_TMNUM</code> constants, but not more <code>TM\_<i>MOVENAME</i></code> or <code>HM\_<i>MOVENAME</i></code> constants, so the moves are recognized as teachable but don't have an associated item.)
It's important to understand that there's nothing special about the specific numeric values, except $00 and $FF. `const_def` starts a new constant sequence at 0, and every `const`, `add_tm`, or `add_hm` after that defines the next constant in the sequence. In the line "`const BRIGHTPOWDER ; 03`", the "`; 03`" is just a comment; `BRIGHTPOWDER` has the value $03 only because it's the fourth item in the sequence (remember, IDs start at 0, not 1). So if you add or remove something in the middle of the sequence, everything after it will be shifted. To avoid getting confused, when you add or remove an item, update the comments with the new ID values.