List of Opcodes: Difference between revisions
m Add to documentation category |
Marius851000 (talk | contribs) →Types of parameters: Add some documentation about bitfields |
||
| Line 9: | Line 9: | ||
* uint: An unsigned integer (a number without decimals). It cannot be negative. It is possible that in the game's code, there are only signed integers and no unsigned integers, but not enough research has been done on the matter. For the most part, it shouldn't matter. | * uint: An unsigned integer (a number without decimals). It cannot be negative. It is possible that in the game's code, there are only signed integers and no unsigned integers, but not enough research has been done on the matter. For the most part, it shouldn't matter. | ||
* sint: A signed integer (a number without decimals). It can be either positive or negative. | * sint: A signed integer (a number without decimals). It can be either positive or negative. | ||
* bitfield: A bitfield is uint where each bits (0 or 1) are treated independantly. They are used to store multiple binary (boolean) values efficiently. Opcodes that use it usually come in the <code>Set</code> and <code>Reset</code> variant. The <code>Set</code> variant define to true the values which are 1 in the input bitfield (while leaving the others untouched), and <code>Reset</code> define to false the values which are 1 in the input bitfield (while also leaving the others untouched). | |||
* String: Text (i.e dialogue). There should always be a quotation mark (") at the beginning and end. | * String: Text (i.e dialogue). There should always be a quotation mark (") at the beginning and end. | ||
* ConstString: Same as String. | * ConstString: Same as String. | ||
| Line 3,335: | Line 3,336: | ||
|- | |- | ||
|1 | |1 | ||
| | |bitfield | ||
|function_bitfield | |function_bitfield | ||
|Most bits' purposes are unknown. Bit 1 appears to be the bit used for allowing an entity to follow a Type 1 actor, like the actor ACTOR_ATTENDANT1 in the overworld. | |Most bits' purposes are unknown. Bit 1 appears to be the bit used for allowing an entity to follow a Type 1 actor, like the actor ACTOR_ATTENDANT1 in the overworld. | ||
| Line 3,351: | Line 3,352: | ||
|- | |- | ||
|1 | |1 | ||
| | |bitfield | ||
|hit_bitfield | |hit_bitfield | ||
|Most bits' purposes are unknown. | |Most bits' purposes are unknown. | ||
| Line 3,371: | Line 3,372: | ||
|- | |- | ||
|1 | |1 | ||
| | |bitfield | ||
|output_bitfield | |output_bitfield | ||
| | | | ||
| Line 3,395: | Line 3,396: | ||
|- | |- | ||
|1 | |1 | ||
| | |bitfield | ||
|reply_bitfield | |reply_bitfield | ||
|Most bits' purposes are unknown. | |Most bits' purposes are unknown. | ||
| Line 4,724: | Line 4,725: | ||
|- | |- | ||
|1 | |1 | ||
| | |bitfield | ||
|unk0 | |unk0 | ||
| | | | ||
| Line 4,756: | Line 4,757: | ||
|- | |- | ||
|1 | |1 | ||
| | |bitfield | ||
|unk0 | |unk0 | ||
| | | | ||
| Line 4,798: | Line 4,799: | ||
|- | |- | ||
|1 | |1 | ||
| | |bitfield | ||
|unk0 | |unk0 | ||
| | | | ||
| Line 4,913: | Line 4,914: | ||
|- | |- | ||
|1 | |1 | ||
| | |bitfield | ||
|unk0 | |unk0 | ||
| | | | ||