AmericanNero
Seasoned veteran member
- Joined
- Oct 13, 2020
- RedCents
- 4,709¢
I was trying to use Select to determine whether a particular spell had been used:
I had first set ${PetSpell} to Manifestation of Earth.
${Select[${PetSpell},Manifestation of Earth]}
gives 3, rather than the expected 1.
I changed the Select to "Manifestation of Water", with PetSpell still Manifestation of Earth, and I still got back 3, rather than the expected 0.
I also needed to know whether it had been a water, air, or fire pet:
${Select[${PetSpell},Manifestation of Water,Manifestation of Air,Manifestation of Fire]}
which also gave me 3.
I tried double quotes, single quotes. Nothing worked.
If I select using a single word, then it works as expected every time, but that doesn't help in this situation.
As a workaround I did:
${PetSpell.Equal[Manifestation of Earth]}
${PetSpell.Equal[Manifestation of Water]} || ...etc...
I had hoped select would work
I had first set ${PetSpell} to Manifestation of Earth.
${Select[${PetSpell},Manifestation of Earth]}
gives 3, rather than the expected 1.
I changed the Select to "Manifestation of Water", with PetSpell still Manifestation of Earth, and I still got back 3, rather than the expected 0.
I also needed to know whether it had been a water, air, or fire pet:
${Select[${PetSpell},Manifestation of Water,Manifestation of Air,Manifestation of Fire]}
which also gave me 3.
I tried double quotes, single quotes. Nothing worked.
If I select using a single word, then it works as expected every time, but that doesn't help in this situation.
As a workaround I did:
${PetSpell.Equal[Manifestation of Earth]}
${PetSpell.Equal[Manifestation of Water]} || ...etc...
I had hoped select would work


