Select_Weapon(msg as text)
if((msg) in list(WeaponNames))
usr<<"That was not a valid weaponry code."
I am trying to make a system where if a certain text string is achieved/entered, then it runs through a list (in this case WeaponNames) and if the text string matches a variable in said list- then that item is created. I have attempted this, but it doesn't seem to be working in any way that I've tried it and was wondering if anyone could help with a possible solution?