GameMaker Touhou Engine   Home   Downloads   Documentation

_ENEMY_SPELL_SET_ATTRIBUTE()


A script that changes a specific piece of data regarding a spell card.


Returns: Void


Syntax:


_ENEMY_SPELL_SET_ATTRIBUTE(ds, sid, flag, attr)

Arguments:


Name Type Significance
ds ds_map The ds_map to write to.
sid Non-negative Integer The spell's unique numerical identifier. (see global._DATA_MAP)
flag Non-negative Integer The suffix of the attribute to update. (see global._DATA_MAP)
attr Integer, Reference to Object or String The value to write. When updating the capture and attempt count, this argument is ignored with the exception of updating the attempt count to -1.