itemsprite#
Inherits: sprite
An active item on the screen. See Screen->LoadItem() and Screen->CreateItem().
Variables#
Functions#
Variable descriptions#
Max number of itemsprites currently allowed.
The item ID to give when the item is collected.
The type itemdata of the item. Uses the IC_
constants.
The type itemdata of the item. Uses the IC_
constants.
The itemโs level
The starting tile of the itemspriteโs animation.
The secondary CSet used for flashing.
The number of frames in the itemspriteโs animation.
The current frame number that the animation is on.
The speed of the animation, in frames per frame.
The number of delay frames at the start of the itemspriteโs animation.
If the itemsprite is flashing or not. When flashing, it changes between itsโ CSet and FlashCSet.
The item pickup flags, as a bitwise flagset. Use the IP_
constants to
access. Take care when using any INTERNAL
flags.
If true, picking up the item does not play itโs usual pickup sound assigned in the item editor. Does not affect holdup sound.
If true, picking up the item does not play the screenโs holdup sound. Does not affect the usual pickup sound assigned in the item editor.
The 8 InitD[] arguments for the itemsprite script.
The timer that ASpeed is used with.
The message string to display upon picking up the item.
int PickupStringFlags ๐ Source
The flags associated with the pickup string, as bitwise flags. Use the
IPSTR_
constants to access this.
The itemsprite script running on this itemsprite.
The dropset that this item was dropped by. Will be set for engine-dropped items, can be written by scripts as well.
If set to true, the item will automatically be collected by the Hero as soon as possible.
Warning
Deprecated!
A flagset that determines how internal engine sizing of items is applied.
Values are ORd together, as follows:
Warning
Deprecated!
Function descriptions#
Returns the max number of itemsprites currently allowed.
Warning
Deprecated! Use Max instead!
void Max(int value) ๐ Source
Sets the max number of itemsprites allowed to a new value. Range
1-1024
.
Warning
Deprecated! Use Max instead!
Returns true if this pointer points to a valid itemsprite. If this returns false, using any other value of this pointer will error.
void Explode(int mode) ๐ Source
Creates an explosion particle effect in mode 0, 1, or 2 of the sprite.
Instantly deletes the itemsprite.
bool Switch(int effect) ๐ Source
Switch the Hero with this sprite.
Valid values for effect
: SwitchEffect (SW_EFF_
).
void Own(bitmap b) ๐ Source
Grants โOwnershipโ of the parameter object to the itemsprite.
void Own(paldata b) ๐ Source
Grants โOwnershipโ of the parameter object to the itemsprite.
Grants โOwnershipโ of the parameter object to the itemsprite.
void Own(directory b) ๐ Source
Grants โOwnershipโ of the parameter object to the itemsprite.
Grants โOwnershipโ of the parameter object to the itemsprite.
void Own(randgen b) ๐ Source
Grants โOwnershipโ of the parameter object to the itemsprite.
void OwnArray(untyped array) ๐ Source
Grants โOwnershipโ of the parameter object to the itemsprite.
void OwnObject(untyped object) ๐ Source
Grants โOwnershipโ of the parameter object to the itemsprite.