Ok so the title might not exactly fit what I’m trying to say but in the event it doesn’t let me explain:
Right now I’m working with Derma combo boxes. I’m trying to make it so if for example, I click the option “DUCK”, it makes the variable Animal = “DUCK”. This is probably not the most efficient way to do something, but it’s the only way I can think of doing it right now. To get a little more specific: I want the option I choose in a ComboBox to change a variable.
I think I’ve got the bit with setting the variable to “DUCK” down, but I can’t know for sure because when I try to make an if then statement with it *, I get lua errors about how the then should be next to the =.
if ANIMAL = ("DUCK") then --Stuff end
Is there a better way to do this? The reason I want to set the variable is because I want to temporarily save that tiny bit of data so when I run the menu close, It can apply certain things based on what the variable is. In this example, if I chose duck, it would change me to a duck after I closed the menu.
And no, I’m not making something in relation to ducks.