1
2
Again -- It's fine. I intend to change the code later to have player vitals updated outside of a list. A pro-tip Ter suggested.
|
In response to Yoren
|
|
No, those aren't the same. The first one freezes the whole game by not letting time pass. The second one does let time pass but blocks procs called after it, but the game continues because things like verbs can still be used while that loop is stopping the one proc that called it.
|
In response to Kaiochao
|
|
Oh! So that would be why it crashed all those times then, as I was using the 1st option, and why it worked but caused my Hunger() to no longer update.
Cheers mate, thanks for explaining. |
1
2
A switch isn't really any different in terms of the problem. When you have so much code repeated like that, it's usually time to look to a formula.