First post here. I haven't been able to solve this issue on my own so I figured I would come here for some help. It's seemingly something very basic, but I can't find any documentation on it anywhere.
I'm trying to use a string variable for my potion type, such as
set {_potion} to "STRENGTH"
apply {_potion} tier 1 without particles to player for 999 days
The above gives no error but I'm sure it's not working because the potion variable is a string. I do know I can simply just do "apply strength tier 1 to player" and it will work, but my script depends on a string variable being the source of the potion type. I was thinking this would work if I could somehow convert the {_potion} variable to a potion type, but that doesn't seem to exist.
Is there any way to get this to work? Thanks for your time.
I'm trying to use a string variable for my potion type, such as
set {_potion} to "STRENGTH"
apply {_potion} tier 1 without particles to player for 999 days
The above gives no error but I'm sure it's not working because the potion variable is a string. I do know I can simply just do "apply strength tier 1 to player" and it will work, but my script depends on a string variable being the source of the potion type. I was thinking this would work if I could somehow convert the {_potion} variable to a potion type, but that doesn't seem to exist.
Is there any way to get this to work? Thanks for your time.