Creating a pickup
Creating a pickup is effectively creating a simple decoration, but with a few more steps. You should read that tutorial first before continuing on here. In this tutorial we will define several pickups, each with its own section. In addition, the multiple ways in which a pickup can be defined will also be explored.
Much like creating a simple decoration, we will start by creating a text lump named EDFROOT, but for this tutorial each section will have its own unique lump name.
Thing-based pickup
Thing-based pickups offer a more streamlined end-user experience than sprite-based pickups, and so it is suggested that you use thing-based pickups. In addition, thing-based pickups take priority over sprite-based pickups, and if a pickup has both available, it will only use the one that is in its thingtype definition.
Health
Armor
Ammo
Power-up
Weapon
Artifact
Sprite-based pickup
Sprite-based pickups are what almost all IWAD pickups use, and are mostly there for backwards-compatibility.