ArrayCmp

From the Oblivion ConstructionSet Wiki
Jump to navigation Jump to search

A command for Pluggy.

Syntax:

(Equality:bool) ArrayCmp FirstArrayID:long SecondArrayID:long CheckValidity:short

Compares two arrays; Returns 1 if they are equal, or 0 if they are different or invalid.

If CheckValidity is 1, ArrayCmp will return the following if one or both of the ArrayIDs is invalid:

Value  Meaning
 -1     FirstArray is invalid
 -2     SecondArray is invalid
 -3     Both arrays are invalid