okay so when I want to change the sprites would be when the round restarts so when you first enter the room and when the room restarts for the next round, do you have any suggestions upon how to do this when so I want the sprites to change once you either win, loose or draw the first round and I want the sprites to appear when you enter the room.
I added the
var_userchoice =3;
rather than
var_userchoice = obj_cards.image_index;
was this right?
It was not necessarily right and not necessarily wrong. It's your code - you wrote it, and you modified it - so
you would have to tell
me if it's right or not as you are more familiar with it than I am. I didn't tell you to modify it the way you did - I merely answered your question and asked another - so I can't answer that question. You decided that this is how it should be modified, and if you can't back this up with reasons why it should be modified that way, you're essentially just guessing at this point. This won't get you anywhere, and I can't continue providing help if it merely ends up making you guess because I'd be sending you off towards a dead-end by doing so.
var_userchoice depends on
obj_cards.image_index according to your code. I'm bound to think that you had a reason to add this dependency, and only you know it, not me, because you haven't stated it and it's not apparent from the code you've posted. Due to this, it may not be very wise to override this, as you would override the original intent behind making it depend on that in the first place, so while, yes, ensuring that it will be 3 will certainly ensure that a sprite will be assigned, it may also end up breaking something else. Might as well just assign a sprite under all circumstances, completely removing the condition, but there's no way for me to know whether that is what you intend because I barely know anything about this game.
If you don't know what this something else is, whether there even is something else that would break as a result of this, why the dependency was there in the first place or why it's okay to overwrite it and make the changes you made to your code, you've successfully programmed yourself into a corner and can't tell what your own code does (and why) anymore. If that's the case, and if these are the questions you find yourself asking (both to yourself and others) as a result of it, it may be best to take a step back and rework the system you have in place, as it has outgrown your ability to comprehend it and the cause and effect reactions modifications to it have. If you continue to try to "make this work", even if you do succeed, you'll be back the next day with yet another problem due to the multitude of layers of cryptic code that you can't make sense of on your own anymore, and that's clearly not the point of this forum.
If you can't make sense of this system anymore, you can't reasonably expect that others will be able to - I gave up on it, for example - and rewriting this from the ground up and making sure that you actually understand what you're doing will build the foundation upon which you can expand with confidence.
Also, this is not a chat, it's a support forum. Limit posts to on-topic essentials and pay attention not to post more than once in a row. I've already merged four of those posts and
the rules clearly explain what behavior is acceptable when posting and what isn't - you may wish to revisit them.