Here's the problem. Suppose I wanna make sort of a contest in my game. You know, two competitors, a judge, questions being asked... Well, at the end the judge would say: "Congratulations! Your final score was ___!" I can increase a variable each time you answer correctly, but what can I do so that the text displays the variable number? Do I have to check if the variable is 99, then display message with number 99 and so on?
Announcement
Collapse
No announcement yet.
Question on variables.
Collapse
X
-
Trebsay
Re: Question on variables.
I'm not very good with variables, but I beieve it is possible. If it doesn't work you can use modes, which would be alot more work. I'm still new to variables... But you can do lots of stuff with them. I don't know if Evil Chipmunk is right or not. But wait and see what the majority says, because I am sure it can be done.Originally posted by Evil Chipmunk View PostAfter every question you could have a text message. Sadly, I believe that is the only way to do it.
Comment
-
Re: Question on variables.
I'm almost 100% positive that there would be no way to show a score in the corner or anything. You'd have to use text messages for this.Originally posted by DemonicWyvern View PostI'm not very good with variables, but I beieve it is possible. If it doesn't work you can use modes, which would be alot more work. I'm still new to variables... But you can do lots of stuff with them. I don't know if Evil Chipmunk is right or not. But wait and see what the majority says, because I am sure it can be done.
Comment
-
Re: Question on variables.
If variable = 1
Message: "You have 1 point"
If variable = 2
Message: "You have 2 points"
If variable = 3
Message: "You have 3 points"
So on and so forth."What if like...there was an exact copy of you somewhere, except they're the opposite gender, like you guys could literally have a freaky friday moment and nothing would change. Imagine the best friendship that could be found there."
Comment
-
Re: Question on variables.
What Dray says is right, but if you're going to make some sort of contest, it would be MUCH better to use smaller numbers, and fewer of them. Because if you wanted to display a score between 1 and 100, you would need 25 val cond branches, with each one containing the message, "Your final score was one point," "Your final score was two points," etc...all the way up to 100. Besides this being a LOT of work, you would not be able to fit all those val cond branches into a 50 line mode (I think you might be able to fit 4 "nested" val cond branches per mode and still have room left for other programming code). So for any events where you win points, keep the numbers as small as possible, and try to make as few combinations of numbers as you can.Last edited by Perversion; 08-30-2007, 12:55 AM.
Comment

Comment