Limit of variables?
Anyone knows the limit of named variables in a dream or a scene? Is there another way to 'save' things? Cause I want to have potions and make them dissapear for ever after pick them up, and with variables I'll need A LOT of them. Thank you.
-
I'd guess thats thermometer related.
In your case, you could reduce the number of variable needed by using Binary to Decimal / Decimal to Binary logic, search Dreams for examples.
Each of the potion is binary 0 / 1 or not exist / exist , a binary to decimal converter would assign each bit / potion a value (1,2,4,etc) then add the values to produce a single number that you store in a single variable, this allow 24 bits or potion to be stored in a single variable.
You would then use the decimal to binary converter to get back from the number to bits. -
Persistent variables have a limit of 128. I'm not sure if non-persistent variables have a limit outside of gameplay thermo, but it's more than 128.
OgTheEnigma has a 25bit variable, which uses one variable gadget to hold 25 boolean states. 25×128=3200, though you'll hit another thermo cap long before that I'm sure. :) -
Thanks both of you for answering!
댓글을 남기려면 로그인하세요.