If I had a while action getting 7 data table values and then comparing the values and then changing one of the data values accordingly. Doing it 65.5k times without any wait... Do you think it will be possible to run? Or would I need to put a .05 game time wait in it?
I already know somebody will ask me what i'm doing. I'm making an ai director and this process is going to tell me what @ X,Y cords is either: tight, closed, or an open spot and work accordingly. I figure rather then checking if the spot is tight, closed, or open on the fly, I would rather do it at the first minute of gameplay and just refer to X,Y cords.
Why dont you try it, and then if it doesn't work, add in the little "wait .5 seconds" code or action. I honestly dont know, but computers today do tons of calculations a second, so its worth trying.
Rollback Post to RevisionRollBack
Feel free to Send me a PM if you have any questions/concerns!
Lol yeah I could try it. Gotta make it first tho. And before making it first I would rather get some opinions seeing as I have other choices I could use to make the director. And If I have to add a .05 second timer then it goes from a 55 second delay in the game to a 110 second delay. But yeah guess i'll just do it tomorrow.
Well, as far as I know, the While loops tend to execute their loop faster than the actions themselves. You can't do much more than adding a delay at the end of the loop if you want to make sure every action is executed before the loop starts again. These loops are already too fast for 3-4 actions setting variables, so I assume if you want 30 actions in a single While loop, most of them will be skipped.
Guess I'll find out. Gonna be hard to test it tho. I've had a spell make 10 blah spaced blah apart instantly with a while loop b4 tho, so i'm thinking the actions would still run. I'm mostly concerned about sc2 crashing XD
I know I've seen the program debugger b4, but was it a third party tool or was it part of the editor? Also now that I think about it... If I can do this like this I don't need even the initial 55 second delay in game. =D ofc i'll be running 131k things instead of 65.5k lol
If I had a while action getting 7 data table values and then comparing the values and then changing one of the data values accordingly. Doing it 65.5k times without any wait... Do you think it will be possible to run? Or would I need to put a .05 game time wait in it?
I already know somebody will ask me what i'm doing. I'm making an ai director and this process is going to tell me what @ X,Y cords is either: tight, closed, or an open spot and work accordingly. I figure rather then checking if the spot is tight, closed, or open on the fly, I would rather do it at the first minute of gameplay and just refer to X,Y cords.
Why dont you try it, and then if it doesn't work, add in the little "wait .5 seconds" code or action. I honestly dont know, but computers today do tons of calculations a second, so its worth trying.
Lol yeah I could try it. Gotta make it first tho. And before making it first I would rather get some opinions seeing as I have other choices I could use to make the director. And If I have to add a .05 second timer then it goes from a 55 second delay in the game to a 110 second delay. But yeah guess i'll just do it tomorrow.
Well, as far as I know, the While loops tend to execute their loop faster than the actions themselves. You can't do much more than adding a delay at the end of the loop if you want to make sure every action is executed before the loop starts again. These loops are already too fast for 3-4 actions setting variables, so I assume if you want 30 actions in a single While loop, most of them will be skipped.
@ZealNaga: Go
Guess I'll find out. Gonna be hard to test it tho. I've had a spell make 10 blah spaced blah apart instantly with a while loop b4 tho, so i'm thinking the actions would still run. I'm mostly concerned about sc2 crashing XD
You can also check from debuger how long does it take for a trigger to run its things.
@zenx1: Go
I know I've seen the program debugger b4, but was it a third party tool or was it part of the editor? Also now that I think about it... If I can do this like this I don't need even the initial 55 second delay in game. =D ofc i'll be running 131k things instead of 65.5k lol
Debuger is part of the editor. You can find it somewhere from options/preferences, dont remember where...