Hi! Is it possible to use a string in a variable to pick an object?
I have 2 Dictionary objects and want to select them by name, but the name is stored in a variable.
Is this possible? Or do I have to write the code for every object?
As workaround I just added a new "ID" instance variable to compare but im curious if it works without it.
Or can you use the content of another objects instance variable to select the variable of another object?
Like this: Dictionary.(OtherObject.InstanceVar)?
So I dont have to write several lines for every possible entry.
Like this:
+ Hotspot: SkillLink ≠ ""
----+ System: Pick Breadbuilder by evaluating Breadbuilder.ID=SelectedSkillPlanner
--------+ Hotspot: SkillLink = "Trickster"
---------> Browser: Go to Breadbuilder.Trickster in a new window ("NewWindow")
--------+ Hotspot: SkillLink = "Technomancer"
---------> Browser: Go to Breadbuilder.Technomancer in a new window ("NewWindow")
--------+ Hotspot: SkillLink = "Pyromancer"
---------> Browser: Go to Breadbuilder.Pyromancer in a new window ("NewWindow")
--------+ Hotspot: SkillLink = "Devastator"
---------> Browser: Go to Breadbuilder.Devastator in a new window ("NewWindow")
----+ System: Pick Outridersbuilder by evaluating Outridersbuilder.ID=SelectedSkillPlanner
--------+ Hotspot: SkillLink = "Trickster"
---------> Browser: Go to Outridersbuilder.Trickster in a new window ("NewWindow")
--------+ Hotspot: SkillLink = "Technomancer"
---------> Browser: Go to Outridersbuilder.Technomancer in a new window ("NewWindow")
--------+ Hotspot: SkillLink = "Pyromancer"
---------> Browser: Go to Outridersbuilder.Pyromancer in a new window ("NewWindow")
--------+ Hotspot: SkillLink = "Devastator"
---------> Browser: Go to Outridersbuilder.Devastator in a new window ("NewWindow")