Game Mechanics¶
Characters¶
Equip mask¶
Weapons, armors and accessories can be equipped only on some characters. This is usualy specified through a bitmask:
Bit |
Equipable on |
---|---|
0x0001 |
Cloud |
0x0002 |
Barret |
0x0004 |
Tifa |
0x0008 |
Aeris |
0x0010 |
Red XIII |
0x0020 |
Yuffie |
0x0040 |
Cait Sith |
0x0080 |
Vincent |
0x0100 |
Cid |
0x0200 |
Young Cloud |
0x0400 |
Sephiroth |
Battle¶
Elements¶
There are 16 elements in FF7.
They are usually stored as a bitmask.
In materia they are stored through their index.
Bit |
Index |
Element |
---|---|---|
0x0001 |
0x00 |
Fire |
0x0002 |
0x01 |
Ice |
0x0004 |
0x02 |
Bolt |
0x0008 |
0x03 |
Earth |
0x0010 |
0x04 |
Poison |
0x0020 |
0x05 |
Gravity |
0x0040 |
0x06 |
Water |
0x0080 |
0x07 |
Wind |
0x0100 |
0x08 |
Holy |
0x0200 |
0x09 |
Restorative |
0x0400 |
0x0A |
Cut |
0x0800 |
0x0B |
Hit |
0x1000 |
0x0C |
Punch |
0x2000 |
0x0D |
Shoot |
0x4000 |
0x0E |
Shout |
0x8000 |
0x0F |
Hidden / Ultima |
Physical and Non-Physical elements¶
Elements 0x0A to 0x0E are considered Physical elements, though not enforced as such and show up on physical attacks.
Non-elemental attacks, such as Bahamut’s Flares, have no element selected.
Note
Display: The names of elements 0x09 to 0x0E are never mentionned in the game. However, they are stored as battle text for the purpose of sensing. Hidden / Ultima has no name mentioned in the battle text.
Status Effects¶
There are 31 status effects in FF7.
In attacks, items and accessories they are referred to as a 32-bit bitmask.
In materia they are stored as a 24-bit bitmask so the last 8 status can not be used.
In weapon and armor they are represented as an index. Weapons have a low inflict chance.
Bit |
Index |
Status |
---|---|---|
0x00000001 |
0x00 |
Death |
0x00000002 |
0x01 |
Near Death |
0x00000004 |
0x02 |
Sleep |
0x00000008 |
0x03 |
Poison |
0x00000010 |
0x04 |
Sadness |
0x00000020 |
0x05 |
Fury |
0x00000040 |
0x06 |
Confu |
0x00000080 |
0x07 |
Silence |
0x00000100 |
0x08 |
Haste |
0x00000200 |
0x09 |
Slow |
0x00000400 |
0x0A |
Stop |
0x00000800 |
0x0B |
Frog |
0x00001000 |
0x0C |
Small |
0x00002000 |
0x0D |
Slow Numb |
0x00004000 |
0x0E |
Petrify |
0x00008000 |
0x0F |
Regen |
0x00010000 |
0x10 |
Barrier |
0x00020000 |
0x11 |
M-Barrier |
0x00040000 |
0x12 |
Reflect |
0x00080000 |
0x13 |
Dual |
0x00100000 |
0x14 |
Shield |
0x00200000 |
0x15 |
D.Sentence |
0x00400000 |
0x16 |
Manipulate |
0x00800000 |
0x17 |
Berserk |
0x01000000 |
0x18 |
Peerless |
0x02000000 |
0x19 |
Paralysis |
0x04000000 |
0x1A |
Darkness |
0x08000000 |
0x1B |
Dual Drain |
0x10000000 |
0x1C |
DeathForce |
0x20000000 |
0x1D |
Resist |
0x40000000 |
0x1E |
Lucky Girl |
0x80000000 |
0x1F |
Imprisoned |
Note
Section 4 of Terence Fergusson’s Battle Mechanics FAQ describe each of these statuses with great detail.
Warning
If Dual Rain is inflicted without Dual, the game will crash.
Weapon, Armor, Accessories and Items¶
Usage Restriction mask¶
Some weapons, armors or accessories can only be used in battle. Some others only outside of them. And some can be sold. All these states are handled by a specific bitmask where effects applies if there specified bits are 0.
Mask part |
Description |
---|---|
0x01 |
Can be sold |
0x02 |
Can be used in battle |
0x04 |
Can be used out of battle |
Sources