HentHighSchool Development Forum

Game Development => HHS+ => HHS+ Development => Topic started by: dcsobral on Feb 08, 2024, 01:07 AM

Title: Show Object/String Selection
Post by: dcsobral on Feb 08, 2024, 01:07 AM
I wanted to make a mod that would display a key next to the name of people you have the key for when selecting a person to visit. That selection screen is done by "Show Object Selection" using DisplayName as property which prevents me from adding extra information to any entry. I looked for something more flexible, and though there's "Show String Selection" I'd then I'd have to figure out what was the object associated with the selected entry, and there's always the theoretical, if unlikely, chance of two entries having the same DisplayName.

What I was looking for was something that would either take two lists with the same size, one of objects and one of strings, display the strings and return the corresponding object. There doesn't seem to be anything like that.

Are there other alternatives I haven't considered?
Title: Re: Show Object/String Selection
Post by: barteke22 on Feb 08, 2024, 03:13 PM
Use the Index variant (right-click) and Get Object From List.