Itemvalue¶
Set a flagvar to an Items or Medal's value (buying price) where the id is specified directly or contained in a flagvar.
Syntax¶
(1)
|itemvalue,item|
(2)
|itemvalue,item,flagvar|
(3)
|itemvalue,medal,flagvar,1|
Parameters¶
item
: int | v
int | var
int¶
The Item id to get the value of. The int form must be a valid Item id or an exception will be thrown. The v
/var
prefix indicates that the int portion is a flagvar slot containing the id and it must be a valid one or an exception will be thrown.
flagvar
: int¶
The flagvar slot to set to the item
's value. This must be a valid flagvar slot or an exception will be thrown. The default value is 0.
medal
: int | v
int | var
int¶
The Medal id to get the value of. The int form must be a valid Medal id or an exception will be thrown. The v
/var
prefix indicates that the int portion is a flagvar slot containing the id and it must be a valid one or an exception will be thrown.
1
¶
Indicate to operate in syntax (3) which will set flagvar
flagvar slot to a Medal's instead of an Item's name. This also honor MYSTERY? and will set the value to 35 if flag 681 is true. Any other value is ignores and will cause the command to operate in syntax (2).