التخطي إلى المحتوى الرئيسي

بحث

Limit of variables?

  • PassTheRizla

    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.

  • cgCody

    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. :)

  • duende-verde09

    Thanks both of you for answering!

الرجاء تسجيل الدخول لترك تعليق.