by jmp12 » Sat Jun 07, 2014 3:36 pm
I'm not sure if this is the right place to ask this question? But how do you edit array variables in Seltani?
I have a variable called "testme", with type value and content "[0, 0]", and then two code functions with content "testme[0] +=1" and "print(testme[0])" respectively.
In my location description I then have "[code_1] [[code_2]]". It seems like this should create a button which changes that entry in the array, followed by a bit of text displaying the value of that entry. Instead, it looks like the value refreshes back to its default value every time the text refreshes, clicking the code_1 link will make the code_2 bit display "1" no matter how many times I click, and doing anything else changes it back to 0.
Anyone understand what I'm doing wrong?
Edit: Ok, so only changing other variables actually refreshes it back to 0. Also leaving and returning to the location. Bringing up descriptions leaves it as it is. (Not sure what this information does for me though.)