Non-threaded

Forums » Advanced Editor Forum » Read Thread

Get help from the experts on variables, scripts, items, and other scary things.

Variable upper limit

7 years ago

Just curious, is there a limit to how high a number a variable can store?

Variable upper limit

7 years ago

2,147,483,647. Any higher and it wraps back around to -2,147,483,648.

Variable upper limit

7 years ago

Thanks.

That is a weirdly specific number. Though for what I have in mind, I guess my question should've been, 'What's the longest string of numbers a variable can produce'. Positive or negative doesn't actually matter that much.

Variable upper limit

7 years ago

Perfect, I was just looking for a thread to ask how many variables one can have in a game (?), and right up the top is a thread on how high a variable can get!

Got to love CYS synchronicity!

Variable upper limit

7 years ago
No sense in making a new thread.

How many variables CAN you have in a game?

Variable upper limit

7 years ago
No limit, though juggling more than 200 is a pain in the ass.

It is also worth mentioning that you do not need to create and enter Variables in the GUI. It is much easier and cleaner to just do so through Scripting. The only reason to actually do it in the GUI is if you need to use the Variable in Link Restriction.

Variable upper limit

7 years ago
Wait. You can create them through scripting?

Fuck my life. Do you have any idea how much clicking I just did?

Variable upper limit

7 years ago
Speaking from experience - yes, yes I do. XD

Variable upper limit

7 years ago
Yep. Say you want to add the Variable "%ROCK", just throw it in any Script and it's there till you take it out.

Variable upper limit

7 years ago
Well shit. That would have made some things a lot easier. Especially with throw-away variables you only need a couple of times.

Oh well. Good to know.