GameMaker Touhou Engine   Home   Downloads   Documentation

_UPDATE_SPELL_CAPTURES()


A script that updates the amount of times a given spell card has been captured, called whenever a spell ends.


Returns: Void


Syntax:


_UPDATE_SPELL_CAPTURES(ds, spell_name)

Arguments:


Name Value Significance
ds <ds_map> The ds_map to write into (it is recommended to use global._SPELL_MAP_TEMP).
spell_name <string> The "internal" name of the spell, i. e. how the game refers to the spell.

Actions: If the spell does not have an existing entry inside ds, create one and set the number of captures to 0, else if the spell has been captured, increase the number of captures by 1 (nothing will happen otherwise). (the amount of times a given spell has been attempted is stored under the key "<internal name>_c")