| 10-27-2004, 04:48 AM | #1 |
Would it be a major problem error wise if i made a variable size 45? Containing (possibly) either an integer or a specific item? |
| 10-27-2004, 05:08 AM | #2 | |
Quote:
Your question is a little confusing... but, if you're wondering if setting the size of an Array to 45 is going to cause problems, then no, no it won't. My newest map uses several variables, integers, timers and booleans that each reach 450+ values, and the map doesn't lag much if at all. And.. reading your post literally, a single variable can't contain both an Item and an Integer, you need a separate variable for each. I think i covered all bases but let me know if i totally missed what you wanted lol. |
| 10-27-2004, 05:15 AM | #3 |
Thanks thats what i needed to know. Also, no I ment i might deicide i need it to be an integer OR an item variable. -Miningjrk |
| 10-27-2004, 06:05 AM | #4 |
Items, units, triggers, timers, and several other types already are integers. When you create a variable of those types you're really just creating an integer representing its position in an internal array, known as a handle. Nothing in GUI lets you use this fact, but in JASS you can use something called the return bug to get the handle of an object, allowing an integer type to store almost anything. There is a ton of information on this in the JASS vault. |
