- Joined
- Jul 1, 2009
- Messages
- 1,147
It seems lately I've been completely out of it (first with the models) and now this.
I've created a VERY basic triggering system that seems to fail miserably.
Now before I started using if-then-else it destroyed the main dialog and then re-created the whole thing.
I thought that because the trigger was destroying a dialog that didnt exist (on the first fire) that it was causing problems..
After realizing that wasn't the issue with this implementation, I'm really out of ideas.
I set the trigger to writeout to see if it was a dialog < - > dialog item issue but it seems it's not, because every 2 seconds it is infact creating a new dialog item and destroying the old one.
So what's left? The basic arithmetical equation of 'Set Year = (Year + 10)'? Doubtful, but I changed it to 'Set Year = (+ (10)) just to see, and it worked. Every 2 seconds it changed the year to exactly 10, but no more.
The dialog shows a year of -1000, which tells me the first arithmetic value is indeed firing, taking it from -1010 to -1000, but it wont go any higher than that.
It seems 'Set Year = (Year + 10)' isn't updating (Year + ... ) to it's new current value of being +10 more than the previous fire and instead keeping the initial -1010.
So wtf am I doing wrong? It's probably something obvious but I'm getting frustrated at this trigger that was supposed to take me 60 seconds to whip together.
I've created a VERY basic triggering system that seems to fail miserably.
Now before I started using if-then-else it destroyed the main dialog and then re-created the whole thing.
I thought that because the trigger was destroying a dialog that didnt exist (on the first fire) that it was causing problems..
After realizing that wasn't the issue with this implementation, I'm really out of ideas.
I set the trigger to writeout to see if it was a dialog < - > dialog item issue but it seems it's not, because every 2 seconds it is infact creating a new dialog item and destroying the old one.
So what's left? The basic arithmetical equation of 'Set Year = (Year + 10)'? Doubtful, but I changed it to 'Set Year = (+ (10)) just to see, and it worked. Every 2 seconds it changed the year to exactly 10, but no more.
The dialog shows a year of -1000, which tells me the first arithmetic value is indeed firing, taking it from -1010 to -1000, but it wont go any higher than that.
It seems 'Set Year = (Year + 10)' isn't updating (Year + ... ) to it's new current value of being +10 more than the previous fire and instead keeping the initial -1010.
So wtf am I doing wrong? It's probably something obvious but I'm getting frustrated at this trigger that was supposed to take me 60 seconds to whip together.