I want to display data from an array and step through members of the array with key commands

Maybe you could set up a property to record the number of hits received that can be incremented by 1 for each hit. Have another property with damage values stored as a string. Then use the number of hits property to access the correct character in the damage values string using either the charAt() method or the substring() method.

Edit: There is some discussion here: Manipulating Strings or Counting by Letters

2 Likes