cosmasjdz
2014-10-09 15:47:40
hi guys, i tried to update my script so it could start/fix fail from any point of it i made something like this:
Was thinking to writing a quick reguiding procedure to the certain spot fo example always to the afterbank so when its there despite where it started it can run mainloop from the right place.
The problem is for example killingshit has fix as a failsafe and if i am calling killingshit in fix it goes to infinitive loop….. iv tried to add variables to fix procedure and global ones to to stop this loop but they doesnt help cause everytime i run fix i get new instance it is never ending tree…Its like procedure calling itself within itself without the end…. what can i do else to make something like universal failsafe/ functions which could guide my charachter to start from the right spot?
procedure fix
check if need fix;
if tabbackpack empty and at shitplace then killgshit, runningtobankshit,bankingshit, exit;
and so on till i come back to the afterbank shit...
end
procedure mainloop
fix
afterbank
goingtoshit
killingshit
runningtobankshit
bankingshit
end
repeat
mainloop
until falseWas thinking to writing a quick reguiding procedure to the certain spot fo example always to the afterbank so when its there despite where it started it can run mainloop from the right place.
The problem is for example killingshit has fix as a failsafe and if i am calling killingshit in fix it goes to infinitive loop….. iv tried to add variables to fix procedure and global ones to to stop this loop but they doesnt help cause everytime i run fix i get new instance it is never ending tree…Its like procedure calling itself within itself without the end…. what can i do else to make something like universal failsafe/ functions which could guide my charachter to start from the right spot?