From SRB2 Wiki
Jump to: navigation, search

A_CheckTargetRings is an action that calls a state depending on the number of rings currently held by the actor's target. If the actor doesn't have a target, or is not targeting a player, this action will do nothing. Var1 determines the minimum ring requirement to allow the state to be called with – i.e if the number of rings currently held by by the actor's target is greater than or equal to Var1, the state is called. Var2 determines the state to call when this action is successful; see List of states for a full list.

This action originates from the v2.0 modification SRB2Morphed and was added to SRB2 itself in v2.1.

NoteIcon.png Note
Due to a bug in v2.1, this action actually compares Var1 with the player's total health (number of rings + 1), rather than the player's ring count directly. To adjust to this properly, simply add 1 to the value set for Var1.

  Actions – Checking [view]