GameMaker Touhou Engine   Home   Downloads   Documentation


A script that updates the amount of times a given spell card has been attempted, called whenever a spell is declared.

Returns: Void


_UPDATE_SPELL_ATTEMPTS(ds, spell_name)


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 attempts to 1, else increase the number of attempts by 1. (the amount of times a given spell has been attempted is stored under the key "<internal name>_a")