diff options
author | Remy Oukaour <remy.oukaour@gmail.com> | 2018-05-05 19:20:55 -0400 |
---|---|---|
committer | Remy Oukaour <remy.oukaour@gmail.com> | 2018-05-05 19:20:55 -0400 |
commit | 8823e0e8b24e01da4e360f2b7b3f6e6117cae34a (patch) | |
tree | 648472994887d1d34c60105080525359484e5b9b | |
parent | ac764d85fa648bff04a09129a871020bf84706ef (diff) |
NO_LIMITS
-rw-r--r-- | Add-different-kinds-of-new-items.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Add-different-kinds-of-new-items.md b/Add-different-kinds-of-new-items.md index 2b70ad6..e9738c8 100644 --- a/Add-different-kinds-of-new-items.md +++ b/Add-different-kinds-of-new-items.md @@ -55,7 +55,7 @@ Every kind of item has these pieces of data. `ItemNames`, `ItemDescriptions`, `I - **price:** The price in Marts. Prices range from ¥0 to ¥65535 ($FFFF, the maximum value of a two-byte quantity). Items can be resold for half the price. - **held effect:** The effect when held by a Pokémon. Usually `HELD_NONE`, except for items like Leftovers. The `HELD_*` constants are defined in [constants/item_data_constants.asm](../blob/master/constants/item_data_constants.asm). Creating a new held item effect is beyond the scope of this tutorial, but you can look at which effect constants are used by existing items to see what they do. - **parameter:** A piece of extra data associated with the item. Usually 0, but some item effects use this parameter. For instance, BrightPowder's parameter of 20 is interpreted by `BattleCommand_CheckHit` as an extra 20/256 (~7.8%) chance to miss a move. -- **property:** Controls whether you can select and/or toss the item. 0, `CANT_SELECT`, `CANT_TOSS`, or `CANT_SELECT | CANT_TOSS`. Most items have `CANT_SELECT`, except for the usefully selectable ones like Bicycle or ItemFinder. `CANT_TOSS` is for key items and HMs. +- **property:** Controls whether you can select and/or toss the item. `NO_LIMITS`, `CANT_SELECT`, `CANT_TOSS`, or `CANT_SELECT | CANT_TOSS`. Most items have `CANT_SELECT`, except for the usefully selectable ones like Bicycle or ItemFinder. `CANT_TOSS` is for key items and HMs. - **pocket:** Which pocket it goes in. `ITEM`, `KEY_ITEM`, `BALL`, or `TM_HM`. - **field menu:** What the item does when you try to use it in the field (i.e. outside of battle). - `ITEMMENU_NOUSE` can't be used at all ("OAK: <i>PLAYER</i>! This isn't the time to use that!") @@ -112,7 +112,7 @@ Edit [data/items/attributes.asm](../blob/master/data/items/attributes.asm): ```diff -; ITEM_19 -- item_attribute $9999, HELD_NONE, 0, 0, ITEM, ITEMMENU_NOUSE, ITEMMENU_NOUSE +- item_attribute $9999, HELD_NONE, 0, NO_LIMITS, ITEM, ITEMMENU_NOUSE, ITEMMENU_NOUSE +; BIG_NUGGET + item_attribute 20000, HELD_NONE, 0, CANT_SELECT, ITEM, ITEMMENU_NOUSE, ITEMMENU_NOUSE ``` @@ -185,7 +185,7 @@ Edit [data/items/attributes.asm](../blob/master/data/items/attributes.asm): ```diff -; ITEM_2D -- item_attribute $9999, HELD_NONE, 0, 0, ITEM, ITEMMENU_NOUSE, ITEMMENU_NOUSE +- item_attribute $9999, HELD_NONE, 0, NO_LIMITS, ITEM, ITEMMENU_NOUSE, ITEMMENU_NOUSE +; SWEET_HEART + item_attribute 100, HELD_NONE, 0, CANT_SELECT, ITEM, ITEMMENU_PARTY, ITEMMENU_PARTY ``` |