Difference between revisions of "FF8/Field/Script/Opcodes/170 UNKNOWN5"

From QhimmWiki
Jump to navigation Jump to search
Qhimm>BukTop
m (1 revision imported)
ffrtt>Sleepey
(fixed opcode & confirmed returns 1 or 0)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
* Opcode: '''0x170'''
* Opcode: '''0x16A'''
* Short name: '''UNKNOWN5'''
* Short name: '''UNKNOWN5'''
* Long name: Has item (or Get Item Count?)
* Long name: Has item


====  Argument  ====
====  Argument  ====
Line 13: Line 13:


If the party has the item with the given ID, pushes 1 to temporary variable 0. Otherwise, pushes 0.
If the party has the item with the given ID, pushes 1 to temporary variable 0. Otherwise, pushes 0.
It's possible this just returns the number of the item the party has.

Latest revision as of 06:39, 26 October 2020

  • Opcode: 0x16A
  • Short name: UNKNOWN5
  • Long name: Has item

Argument

Stack

Item ID
UNKNOWN5

Description

If the party has the item with the given ID, pushes 1 to temporary variable 0. Otherwise, pushes 0.