I am making One Night Ultimate Werewolf, and I ran into a glitch. I am trying to make it randomly give each player a card, but sometimes it overlaps. It is about a 1 in 5 chance. Push A to reset the game, and menu to show which card has what role. If you find the bug, or have a better way to do it PLEASE TELL ME!!! I AM REALLY FRUSTRATED BECAUSE I USUALLY FIND THE BUGS IN MY CODE!!! I only have werewolf, villager, and seer.
I used an extension which gives multiple sprites their own data, really helpful!
But that means your going to have to work with those, take it or leave it.
Anyway:
Thank you so much
what it now looks like, push B to kill a player. It still looks a bit weird. The villager can kill the werewolf.
Basically, “or” blocks don’t work like that. You would have to put <thing = thing>or<thing /= thing> for all of them, and not just with one “/=“ attached to all of them at the end. Instead of all those “20%” blocks (which also don’t really work like that), you should be using arrays, and then removing “used” sprites from the array so that they can’t be used again, like this:
Once again I must ask: Who is approving posts this late at night??
Oh, the bottom one was supposed to be the werewolf?
Should of said that…
Just make the bottom one certain to be the werewolf, and use functions to assign everyone else.
I’ve played this game before at a sleepover once! this looks cool so far, I hope you post the final project soon
Time zones
Now it only eliminates someone who isn’t the werewolf.
The werewolf is supposed to be random. The eliminating system has to eliminate one player, except the werewolf, because the werewolf can’t eliminate itself. The only hard part I am struggling with is the voting system. Should everyone vote randomly?
Bug fixes
Does anyone have anything they want me to add? I am going to add the seer role power soon. Press B to go to the next night. (I am going to make it say the night #)
@AlexK is I think.
Also it might not be late at night for them.
Also I’m a bit late to reply to this.
Time zones are weird. Most posts get approved at around 3-6 am for me, so just about perfect when I get up at 6. The a second wave in the afternoon or at around 10.