![]() |
![]() ![]() ![]() ![]() ![]()
|
Author | Topic: Random Numbers |
momewraith |
![]() I'm probably going to sound really stupid for asking this, but is there a way to get quest to generate a random number within a range (Say, 1 to 10, or 3 to 21)? |
Tyrant |
![]() It says in the Help Documentation, but I'll tell you anyway: $rand(1;10)$ This generates any number between 1 and 10, but you can use whatever two numbers you want, such as: $rand(3;21)$ |
Computer Whizz |
![]() I hope you don't mind (Tyrant), but I've uploaded a little demo to my server: www.roxor.freeserve.co.uk/rand.asl which shows clearly the rand function - just incase you don't understand Tyrants explaination..... I really feel bad now (as if I stepped on someone's wedding dress :) ) Computer Whizz |
Tyrant |
![]() Whatever works... I guess I'm too lazy to get into a descriptive explanation. By the way, Computer Whizz, what have you been up to lately? Creating any Quest games? I haven't created any at all lately, but I feel like whipping up a short, useless, but fun game as I haven't submitted anything to Alex for a couple years. |
Computer Whizz |
![]() Well, I've been a little busy with college work - my computing stuff has to be in shortly after I go back in 2 weeks.... and I'm still not sure why it needs doing ect... (Stupid MS Access!). I've been working on my magic/battle system for my game, called "Quasi-Magic" in my spare time during maths. That isn't alot of time mind you, but I've done a fair bit - it's just hard to work out how much damage they'll do and the hit%. I think I'm close though! What's your release going to be about? Computer Whizz |
Tyrant |
![]() It's kind of strange... Basically the world is going to end in a certain time limit (say 3 days and 3 nights, where it ends at midnight of the third night). Each hour would be a minute or less in real time, so you are on a real time limit. Your mission is to pretty much stop the world from ending, and by doing so you have to collect these certain cards by doing certain objectives (such as helping townspeople). You either receive a bronze, silver, or gold card depending on how well and fast you executed the objective. Each card is associated with a certain number of points, such as bronze cards are worth 1 point, silver 2 points, and gold 3 points. You have to have a certain number of points to get to certain areas... save the world... bla bla bla etc etc etc. Plus I'm going to have specials, such as something extra you get if you collect ALL the gold cards in the game. Quite surreal and weird plot-wise, but that's what I'm aiming for. It won't be too long, but it could be longer than the games on this archive (from what I've played). |
Computer Whizz |
![]() Nice! I'd play that..... I have 2 week's off now, so I'll complete that Luridii game! And then some other stuff! Computer Whizz |