Mudbill
Muderator
Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation:
179
|
RE: Doubt about a puzzle idea (script)
Yeah I figured someone would come and clean it up a bit. Personally I wouldn't use an if-statement for each vase if I can help it, I just didn't bother with it since I typed it all by hand in a comment at 3 am xP
Though I guess it slipped me because I expected the vases to not be named in the order they were gonna be broken in. And resetting the value is correct. I just assumed it to be included in the reset lose-code, but always good to point out just in case.
One thing; your vasesBroken++; should be before the win-check, or else they won't actually win upon breaking the last one, but rather the next time the break occurs.
(This post was last modified: 03-07-2016, 11:57 PM by Mudbill.)
|
|
03-07-2016, 11:56 PM |
|