Now, making a selection will return the selected index. For documentation, just see the relevant thing on DICTIONARY or check out the script.