|
Post by BiNMaN on May 5, 2012 11:54:23 GMT
if I set a variable to 50 it comes up 23, yet if I set it at 100, 90, 80, 70, 60, 40,30, 20 or 10 it holds the correct value
I'm using it as a counter reducing it by 10 once a certain amount of enemies are killed to control the rate at which enemies respawn ie the more you kill the quicker they come back
|
|
|
Post by Jonathan Cauldwell on May 6, 2012 16:14:23 GMT
That sounds bizarre and I suspect it could be a tricky one to replicate!
It might be a couple of days before I can take a look as I need to reinstall Windows on my PC first.
|
|
|
Post by BiNMaN on May 6, 2012 23:09:32 GMT
nice one
thing is if you set a variable higher than 50, when it decreases it does so as you would expect so when it gets to 50 it displays 50
usually when working with variables I have them printed on the screen so I can see if they increase/decrease as expected it helps me to make sure the logic I'm using is working correctly
|
|
|
Post by Jonathan Cauldwell on May 11, 2012 17:44:51 GMT
You're right, there's definitely something strange going on. It looks like the number 50 is confusing the script compiler somehow.
I'll let you know when I find the source of the problem.
|
|