QuoteI think I recall a conversation with Avenger, where he stated the maximum value was lower than this. I also think I remember my testing showing a maximum value significantly higher than this (and when the max limit was passed, there value was not set to the max, or wrapped around, it just entered a pattern I don't remember).That's a tricky question, since most compilers won't let you get away with values larger than 2^32. Since the variable value is signed, it should give a range from -2^31 to 2^31 - 1 (if that's indeed the maximum size). Conveniently, this range also applies to STATEs and whatnot.
QuoteIt may not be in the right place in the IESDP, but .. thats.. umm.. to encourage people to read the entire thing.This means that you will mention the size limits in the Variable section too in the next release, right?
Obviously![]()

QuoteLemme guess... 4 signed bytes?

Quote from: igiI do know this, and, as has been noted, it is in the IESDP.Lemme guess... 4 signed bytes?
It may not be in the right place in the IESDP, but .. thats.. umm.. to encourage people to read the entire thing.
Obviously
There's also a limit as to how high you can set variables, which I don't think is listed in the IESDP though.




Quote from: RabainWhy does only one global get truncated?the global name is stored in a 32 byte space, so only 32 characters in memory (the SetGlobal part).
If both are over 32 should they both not get truncated or does the trigger portion ignore the length?
Does that make sense?

QuoteAccording to what you are saying the game does not ignore the action but will ignore the setting of the global variable.Right, I was incorrect in my statement. (I actually meant that the action didn't work properly.)
QuoteIf you check the IESDP, you'll see that the baldur.gam structure has finite bytes for a variable name (32 for global and area, 24 for locals). Hence, the second script was incrementing tha variable BW05_CreaturesSummonedinMagicTra and checking for BW05_CreaturesSummonedinMagicTrap, hence the loop.Checking the structure of baldur.gam would have been a good idea. Anyway, I think that in the next version of IESDP these length limits could be mentioned in the Variables section.
QuoteThe script will still be compiled (and can be properly decompiled), but the game will ignore the trigger/action that uses the global.According to what you are saying the game does not ignore the action but will ignore the setting of the global variable.
...
The creatures start to appear in the game in an infinite loop.